gamecord-fork

1.0.12 • Public • Published

Gamecord

Easy to make discord games for your bot by us!

Installation

npm install gamecord

NPM

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

1

2

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)

Docs - Docs (Old)

Discord - Join discord server for help

Readme

Keywords

Package Sidebar

Install

npm i gamecord-fork

Weekly Downloads

146

Version

1.0.12

License

MIT

Unpacked Size

41.6 kB

Total Files

13

Last publish

Collaborators

  • nab138