Giter Site home page Giter Site logo

croco_bot's Introduction

Croco bot

A little game inside a Discord bot I made:

You need to explain the shown word to other people in chat without saying the word itself or any similar words.

Click to invite Drafts Croco to your own server

Warning

This bot may not always be online. Depends on my mood and lunar energy affecting my server's workability.

Installation

  • Clone the repo
  • Put your bot token inside a .env file as BOT_TOKEN
  • Put your Discord User ID in the admin list in the config.py file
  • Launch main.py, should work flawlessly

Warning

You need to have Message Content Intent enabled in your Discord Dev bot page.

Note

Use c!sync to sync the slash command tree (only available to bot admins). You need to do this in order for slash commands to update properly and even appear in the first place.

How to play

Use /start or c!start to begin a game in chat.

The one who entered the command needs to explain a word shown to him in chat. If the word is hard to explain, you may skip this word at no penalty.

The one who guesses the word gets some XP in reward. The explainer also gets the same amount of XP (and moonrocks if the word is long enough). The amount of XP given corresponds to the amount of symbols in the word.

Other players can vote on the explanation. For each like the explainer gets 1 XP. Dislikes is just a number on the other hand and doesn't take away anything, except for the number in the stats.

Todo-list

  • Basic balance and stats
  • Server leaderboard of guesses
  • Transferring moonrocks
  • Ability to skip your turn
  • Text/slash commands for skipping the turn or changing the word
  • Shop with XP boosts
  • Global leaderboard of XP hella cheaters out there
  • Server settings (e.g. changing word list language)

Use your own word list

To use your own word list in the bot:

  • Place your word list in the lang/ directory
    • The list must have words separated by newlines
  • Go to data.json and add your own language
    • Specify a name, an emoji and a filename of your word list
  • Relaunch the bot

You can also change the default word list in the data.json file.

croco_bot's People

Contributors

moontr3 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.