Skip to content

Commit

Permalink
Fix : Snake command
Browse files Browse the repository at this point in the history
  • Loading branch information
DeltaCoderr authored Oct 1, 2021
1 parent cde5381 commit fda844a
Showing 1 changed file with 30 additions and 28 deletions.
58 changes: 30 additions & 28 deletions Commands/Buttons/snake.js
Original file line number Diff line number Diff line change
@@ -1,32 +1,34 @@
const { Snake } = require('weky')

module.exports = {
help: {
name: 'snake',
aliases: ['snake'],
description: 'Play the snake game in Discord!',
category: __dirname.split("Commands\\")[1]
},
run: async (client, message, args) => {
help: {
name: 'snake',
aliases: ['snake'],
description: 'Play the snake game in Discord!',
category: __dirname.split("Commands\\")[1]
},
run: async (client, message, args) => {

const game = new Snake({
message: message,
embed: {
title: 'Snake',
color: config.embedcolor,
gameOverTitle: "Game Over",
},
emojis: {
empty: '⬛',
snakeBody: '🐍',
food: '🍎 ',
//controls
up: '⬆️',
right: '⬅️',
down: '⬇️',
left: '➡️'
}
})
game.start()
}
}
await Snake({
message: message,
embed: {
title: 'Snake ',
description: 'GG, you scored **{{score}}** points!',
color: config.embedcolor,
footer: '©️ Karma Bot',
timestamp: true
},
emojis: {
empty: '⬛',
snakeBody: '🐍',
food: '🍎',
up: '⬆️',
right: '⬅️',
down: '⬇️',
left: '➡️',
},
othersMessage: 'Only <@{{author}}> can use the buttons!',
buttonText: 'Cancel'
});
}
}

0 comments on commit fda844a

Please sign in to comment.