Skip to content

Commit

Permalink
Rename !stop command to !kill.
Browse files Browse the repository at this point in the history
  • Loading branch information
retrixe committed Oct 21, 2022
1 parent 911dd03 commit 2d2bfc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ client.once('ready', async () => {
client.on('messageCreate', message => {
channelLinksMap.forEach(async (value) => {
if (value.channel.id !== message.channel.id || message.author.bot) return
else if (message.content === '!start' || message.content === '!stop') {
else if (message.content === '!start' || message.content === '!kill') {
try {
const body = message.content === '!start' ? 'START' : 'STOP'
const r = await (await fetch(`${config.ip}/server/${config.channels[message.channel.id]}`, {
Expand Down

0 comments on commit 2d2bfc1

Please sign in to comment.