2 |
import DiscordClient from "../client/Client"; |
import DiscordClient from "../client/Client"; |
3 |
import MessageEmbed from "../client/MessageEmbed"; |
import MessageEmbed from "../client/MessageEmbed"; |
4 |
import { notAFK } from "../commands/utils/AFKCommand"; |
import { notAFK } from "../commands/utils/AFKCommand"; |
5 |
|
import Service from "../utils/structures/Service"; |
6 |
|
|
7 |
export default class AFKEngine { |
export default class AFKEngine extends Service { |
|
client: DiscordClient; |
|
|
|
|
|
constructor(client: DiscordClient) { |
|
|
this.client = client; |
|
|
} |
|
|
|
|
8 |
mention(msg: Message, user: GuildMember, cb: (data: any) => void, msg1?: any) { |
mention(msg: Message, user: GuildMember, cb: (data: any) => void, msg1?: any) { |
9 |
this.client.db.get('SELECT * FROM afk WHERE user_id = ?', [user.id], (err: any, data: any) => { |
this.client.db.get('SELECT * FROM afk WHERE user_id = ?', [user.id], (err: any, data: any) => { |
10 |
if (data) { |
if (data) { |