Skip to content
This repository has been archived by the owner on Jan 31, 2021. It is now read-only.

Commit

Permalink
Only use Cards Against Humanity activity
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyissillyyy committed Aug 25, 2018
1 parent 08b9a47 commit 093343e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 24 deletions.
6 changes: 1 addition & 5 deletions Rando.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,13 @@ const client = new Client({
disableEveryone: true,
disabledEvents: ['TYPING_START']
});
const activities = require('./assets/json/activity');
const { stripIndents } = require('common-tags');

client.setup();

client.on('ready', () => {
console.log(`[READY] Logged in as ${client.user.tag}! (${client.user.id})`);
client.setInterval(() => {
const activity = activities[Math.floor(Math.random() * activities.length)];
client.user.setActivity(activity.text, { type: activity.type });
}, 60000);
client.user.setActivity('Cards Against Humanity');
});

client.on('disconnect', event => {
Expand Down
18 changes: 0 additions & 18 deletions assets/json/activity.json

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rando-cardrissian",
"version": "6.2.1",
"version": "6.2.2",
"description": "Cards Against Humanity, but for Discord!",
"main": "Rando.js",
"scripts": {
Expand Down

0 comments on commit 093343e

Please sign in to comment.