Skip to content

Commit

Permalink
fix: Fixed typo in package and remove ussles code from index
Browse files Browse the repository at this point in the history
  • Loading branch information
SerekKiri committed Apr 28, 2019
1 parent 9b46a9b commit 1a2229f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 20 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "redditbot",
"version": "1.5.4",
"version": "1.5.5",
"description": "Discord bot for reddit.com",
"main": "index.js",
"scripts": {
Expand Down
18 changes: 0 additions & 18 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,11 @@ const config = require('./config/config.json')

const client = new Discord.Client()

// variables
const package = require('../package.json')

// commands imports
const cmds = require('./commands/index')

client.on('ready', () => {
const size = client.guilds.size
const users = client.users.size

const presence = [
"reddit.com",
"Mention me for help",
package.version + " version",
size + " servers",
users + " users"
]

console.log(`Reddit Bot has started, with ${client.users.size} users, in ${client.channels.size} channels of ${client.guilds.size} guilds.`)
setInterval(() => {
const random = Math.floor(Math.random() * (presence.length - 1) + 1);
client.user.setActivity(presence[random]);
}, 7000)
});


Expand Down

0 comments on commit 1a2229f

Please sign in to comment.