Git Product home page Git Product logo

codenames-discord-bot's Introduction

Discord Codenames Bot

Whats this?

This is a discord bot that allows users to play the game Codenames over discord with their friends. Before using this bot, it is recommended that you read the rules. The bot uses a list of english nouns compiled by Densi Quintans. The list can be found here.

How can I use it?

The easiest way to use the Codenames bot is to add it to your discord server with this link:

https://discordapp.com/oauth2/authorize?client_id=553991406415511572&scope=bot&permissions=0

Bot Commands

  •   !startcn [Blue Spymaster] [Red Spymaster] [Other players]
    

    This command will start a Codenames game. The first two mentioned players will be the spymasters while the other players will be automatically divided into the blue and red teams. EX:

      !startcn @Player1 @Player2 @Player3 @Player4 @Player5
    

    This will start a game with Player 1 as the blue spymaster, Player 2 as the red spymaster. Players 3, 4, and 5 will be automatically sorted into the red and blue teams.

  •   !clue [clue] [number]
    

    This command allows the spymasters to give clues. EX:

      !clue location 5
    
  •   !guess [word]
    

    This command allows players to make guesses. EX:

      !guess local
    
  •   !pastclues
    

    This command gives a list of previous clues, for reference.

  •   !skip
    

    This command will skip all remaining guesses on the current teams turn and go to the next turn

  •   !end
    

    This command will immediately end the Codenames game on the current server.

Self-Hosting the Bot

If you would like to self-host the bot you can.

  1. Clone the bot.

  2. Get you bot token and put it a text file named token.txt. This file should be in the same folder as the bot. If you dont know how to do that follow this tutorial.

  3. Get the required python libraries:

     pip3 install discord.py tabulate
    
  4. Run the bot:

     python3 CodenamesBot.py
    

If you would like to change the word list just edit nounlist.txt.

codenames-discord-bot's People

Contributors

abezukor avatar j1h7e7 avatar

Watchers

 avatar  avatar

Forkers

j1h7e7

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.