diff options
| author | 8cy <[email protected]> | 2020-04-15 08:10:26 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-04-15 08:10:26 -0700 |
| commit | 972c2ef86a59f0d90da9c11bcdfc9d7245379186 (patch) | |
| tree | 69ef94319bae5f44f3438f409cea9a467d53d296 /src/bot.ts | |
| parent | on msg also log server name, v5.0.6 (diff) | |
| download | dep-core-972c2ef86a59f0d90da9c11bcdfc9d7245379186.tar.xz dep-core-972c2ef86a59f0d90da9c11bcdfc9d7245379186.zip | |
The Uwulapse, v6.0.0
- add webserver
- fix servercount
- formatting
Diffstat (limited to 'src/bot.ts')
| -rw-r--r-- | src/bot.ts | 25 |
1 files changed, 22 insertions, 3 deletions
@@ -1,5 +1,6 @@ import config from './config.json'; import { CommandoClient } from 'discord.js-commando'; +import WS from './ws/ws'; import path from 'path'; import { Structures } from 'discord.js'; import emoji from 'emoji-random'; @@ -18,12 +19,14 @@ Structures.extend('Guild', Guild => { } return MusicGuild; }); - +// const client = new CommandoClient({ commandPrefix: 'uwu!', owner: '217348698294714370' }); +var ws = new WS('123456', 5665, client) + client.registry .registerDefaultTypes() .registerGroups([ @@ -39,8 +42,24 @@ client.registry .registerCommandsIn(path.join(__dirname, 'commands')); client.once('ready', () => { - console.log(`Started bot: ${client.user.tag} (ID: ${client.user.id})\nCurrently running on ${client.guilds.cache.size} server(s).`); - client.user.setActivity('uwu!help | v5.0.0', { + //console.log(`Started bot: ${client.user.tag} (ID: ${client.user.id})\nCurrently running on ${client.guilds.cache.size} server(s).`); + console.log('Bot online!') + console.log(` _ _ __ _ +| | | | / _(_) +| | | |_ ___ _| |_ _ ___ _ __ +| | | \\ \\ /\\ / / | | | _| |/ _ \\ '__| +| |_| |\\ V V /| |_| | | | | __/ | + \\___/ \\_/\\_/ \\__,_|_| |_|\\___|_| + + `) + console.log('discord.js Version: 2.1.1') + console.log('Node.js Version:', process.version) + console.log('OS Version:', process.platform) + console.log('Name:', `${client.user?.tag}`) + console.log('ID:', `${client.user?.id}`) + console.log() + + client.user.setActivity('uwu!help | v6.0.0', { type: 'WATCHING' }); }); |