Code Monkey home page Code Monkey logo

discord-cul-de-chouette's Introduction

Discord - Cul de Chouette -v 0.2

A bot for playing the dice game "Cul de Chouette" on a Discord server.
The game originally appears in French comedy series Kaamelot, and was subsequently developped into a full game by fans. You can find the rules here: rules

Getting Started

You must have NodeJS installed. link
You must have a text editor.
You'll need a Discord account to test your bot.

Clone the repo onto your hard drive, then install Discord's dependencies using NPM:

npm install discord.io winston --save

Now you need to follow this tutorial to setup your discord app. Make sure to note down your bot token.

Now you need to create the files that the bot need in order to run.
First of all create a file in the root directory of the repo called auth.json. You'll need to open it in your editor and write this in it:

{
   "token": "YOUR-BOT-TOKEN"
}

Now create another file called scores.json in the same place. Again, open it and paste this in:

[]

Yes, just that. The file is imported by the bot as an array, and will be populated by the player's scores.

All done! To run the bot simply open a terminal in the repo folder and run:

node bot.js

To do

  • Refactor code. It's a horrendous mess.
  • Write point counting system
  • Make bot more interactive (host "game sessions" etc...)
  • Optimize file i/o

Authors

  • Dylan Robins - Initial work
  • Vincent Charrel - Initial concept

License

This project is licensed under the GNU GPL3 License - see the LICENSE file for details

Acknowledgments

Thanks to Alexandre Astier, creator of Kaamelot, for creating the game.

discord-cul-de-chouette's People

Contributors

dylan-robins avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.