aboutsummaryrefslogtreecommitdiff
path: root/aleebot.js
diff options
context:
space:
mode:
authorAlee14 <Alee14498@gmail.com>2017-10-03 17:59:12 -0400
committerGitHub <noreply@github.com>2017-10-03 17:59:12 -0400
commit4840622368fdabb07ea53386fbe6ec08074d5bca (patch)
tree62be073e1fb521ecb2682907eb3c930bea0878ac /aleebot.js
parent68eac4ce0892b1e20b30d7fee84d4b4b1fc6b76b (diff)
downloadAleeBot-4840622368fdabb07ea53386fbe6ec08074d5bca.tar.gz
AleeBot-4840622368fdabb07ea53386fbe6ec08074d5bca.tar.bz2
AleeBot-4840622368fdabb07ea53386fbe6ec08074d5bca.zip
Updates on what AleeBot's playing
Diffstat (limited to 'aleebot.js')
-rw-r--r--aleebot.js25
1 files changed, 19 insertions, 6 deletions
diff --git a/aleebot.js b/aleebot.js
index da7a719..c32479e 100644
--- a/aleebot.js
+++ b/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')
});