2020-10-22 15:50:47 +00:00
|
|
|
import { Client } from '../models/client.ts'
|
2020-10-23 16:11:00 +00:00
|
|
|
import { Guild } from '../structures/guild.ts'
|
2020-10-22 15:50:47 +00:00
|
|
|
import { GatewayIntents } from '../types/gatewayTypes.ts'
|
2020-10-22 15:55:42 +00:00
|
|
|
import { TOKEN } from './config.ts'
|
2020-10-22 15:50:47 +00:00
|
|
|
|
|
|
|
const bot = new Client()
|
|
|
|
|
2020-10-22 15:55:42 +00:00
|
|
|
bot.connect(TOKEN, [GatewayIntents.GUILD_MESSAGES])
|
2020-10-23 16:11:00 +00:00
|
|
|
|
|
|
|
Guild.autoInit(bot, '').then(a => console.log(a))
|
|
|
|
|
|
|
|
setTimeout(async () => {
|
|
|
|
const result = Guild.autoInit(bot, '')
|
|
|
|
console.log(result)
|
|
|
|
}, 30000)
|