aboutsummaryrefslogtreecommitdiff
path: root/aleebot.js
diff options
context:
space:
mode:
authorAlee14 <Alee14498@gmail.com>2017-10-03 18:17:43 -0400
committerGitHub <noreply@github.com>2017-10-03 18:17:43 -0400
commit56a9398a130a1e66a1cb575a9e3687fe620e1df3 (patch)
tree51461e0d494171a28555267b90b6860ce637e957 /aleebot.js
parentd9eab29ab1f4e3a0ccbc299c8a2c0c6624d2f6cc (diff)
downloadAleeBot-56a9398a130a1e66a1cb575a9e3687fe620e1df3.tar.gz
AleeBot-56a9398a130a1e66a1cb575a9e3687fe620e1df3.tar.bz2
AleeBot-56a9398a130a1e66a1cb575a9e3687fe620e1df3.zip
Updating the master branch (#9)
* Minor updates on ab:say * Updating the beta branch (#8) * Updates on what AleeBot's playing * Minor updates on ab:say (#7) * Fixes
Diffstat (limited to 'aleebot.js')
-rw-r--r--aleebot.js36
1 files changed, 19 insertions, 17 deletions
diff --git a/aleebot.js b/aleebot.js
index c32479e..964b424 100644
--- a/aleebot.js
+++ b/aleebot.js
@@ -36,24 +36,7 @@ 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();
@@ -74,6 +57,25 @@ fs.readdir('./commands/', (err, files) => {
client.on('ready', () => {
log(`[>] AleeBot is now ready! Running version ${abversion} in ${client.guilds.size} guilds!`);
+ 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.user.setStatus('online')
});