mirror of
https://github.com/Alee14/AleeBot.git
synced 2025-01-23 11:41:51 -05:00
Updating the beta branch (#8)
* Updates on what AleeBot's playing * Minor updates on ab:say (#7)
This commit is contained in:
parent
d63d2d1296
commit
3c1afe0452
1 changed files with 19 additions and 6 deletions
25
aleebot.js
25
aleebot.js
|
@ -36,6 +36,25 @@ const log = message => {
|
|||
|
||||
};
|
||||
|
||||
function setGame() {
|
||||
var games = [
|
||||
"with version " + abversion,
|
||||
"attacking AstralMod",
|
||||
"with stuff",
|
||||
"with Alee",
|
||||
"games"
|
||||
]
|
||||
|
||||
client.user.setPresence({
|
||||
status: 'online',
|
||||
afk: false,
|
||||
game: {
|
||||
type: 0,
|
||||
name: games[Math.floor(Math.random() * games.length)]
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
client.commands = new Discord.Collection();
|
||||
|
||||
client.aliases = new Discord.Collection();
|
||||
|
@ -55,12 +74,6 @@ fs.readdir('./commands/', (err, files) => {
|
|||
|
||||
client.on('ready', () => {
|
||||
log(`[>] AleeBot is now ready! Running version ${abversion} in ${client.guilds.size} guilds!`);
|
||||
client.user.setPresence({
|
||||
game: {
|
||||
name: 'with version ' + abversion + '',
|
||||
type: 0
|
||||
}
|
||||
});
|
||||
client.user.setStatus('online')
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue