mirror of
https://github.com/syuilo/ai.git
synced 2025-03-25 21:12:56 +00:00
型がおかしいのなおした
This commit is contained in:
parent
f300043f25
commit
6a3f7dc8a2
1 changed files with 5 additions and 2 deletions
|
@ -11,10 +11,13 @@ export default class FollowModule implements IModule {
|
|||
this.ai = ai;
|
||||
}
|
||||
|
||||
public onMention = async (msg: MessageLike) => {
|
||||
public onMention = (msg: MessageLike) => {
|
||||
if (msg.text && msg.text.includes('フォロー')) {
|
||||
const user: any = await this.ai.api("users/show", {
|
||||
let user: any;
|
||||
this.ai.api("users/show", {
|
||||
userId: msg.userId,
|
||||
}).then(u => {
|
||||
user = u;
|
||||
});
|
||||
|
||||
if (user.isFollowing) {
|
||||
|
|
Loading…
Reference in a new issue