Skip to content

Commit

Permalink
spiller
Browse files Browse the repository at this point in the history
  • Loading branch information
Pomdre committed Nov 13, 2020
1 parent aaae584 commit 9152286
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions nrk_main.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,18 @@ const Discord = require('discord.js');
const client = new Discord.Client();
const args = require('yargs').argv;

let currentStatus = null;
let commands = ['!nrk <kanal>', '!nrk pause', '!nrk fortsett', '!nrk forlat']

client.once("ready", () => {
console.log(`Logged in as ${client.user.tag}!`);
console.log(`Serving ${client.guilds.cache.size} servers`);
setInterval(() => {
if (currentStatus === null || ++currentStatus === commands.length) {
currentStatus = 0;
}
client.user.setActivity(commands[currentStatus]); //Set activity
}, 15e3);
});

client.once("reconnecting", () => {
Expand Down Expand Up @@ -89,11 +98,6 @@ const hjelp = {
"name": "Velg en kanal:",
"value": "```!nrk <kanal>```"
},
{
"name": "Stopp radioen med:",
"value": "```!nrk stop```",
"inline": true
},
{
"name": "Pause radioen med:",
"value": "```!nrk pause```",
Expand Down

0 comments on commit 9152286

Please sign in to comment.