gamecord-fork
v1.0.12
Published
Easy to make discord games for your bot by us!
Downloads
315
Readme
Gamecord
Easy to make discord games for your bot by us!
Installation
npm install gamecord
Features
- Super easy to use 😀
- More Game 🎉
- Support Eris and discord.js
Quick Example
// Install Gamecord
const GameCord = require('gamecord').djs // you can change to .eris if u use eris
// Create Client
const { Client } = require('discord.js');
const client = new Client();
// Ready Event
client.on('ready', () => console.log('Bot is ready :D'));
// Message Event
client.on('message', message => {
if(message.content == '!quiz'){
new GameCord.Quiz(message)
.setTitle('My quiz')
.setColor('#F7298da')
.setTime(20000) // Set time
.on('start', game => console.log(game.item.answers)) // Start event also exists
.run()
}else if(message.content == '!snake'){
new GameCord.SnakeGame(message)
.setTitle('My snake')
.setColor('#7298da')
.setTime(60000) // Always better to set max time because the default one is just 5s
.on('end', game => console.log(`${game.message.author.tag}'s snake game score was ${game.score}`)) // Start event also exists
.run()
}
});
// Login the bot
client.login(process.env.token);
Samples
Authors
- 1GPEX - Original Idea & Make snake, connect4, guess, quiz games
- Science Spot - Make a options & Make snake, connect4, guess, quiz games
Applicable Games
Discord.js
- Hangman (Not Finish)
- Snake
- ConnectFour
- Quiz
- GuessGame
Eris
- Hangman (Not Finish)
- Snake (Not Finish)
- ConnectFour (Not Finish)
- Quiz (Not Finish)
- GuessGame (Not Finish)