Giter Club home page Giter Club logo

discord-tictactoe's Introduction

Discord TicTacToe logo

An innovative Bot for playing Tic Tac Toe on Discord!
Created with discord.js.

Quality Gate Status npm Docker Build status License

demo

"Discord TicTacToe" is a self-hosted NodeJS bot which allows you to play the popular TicTacToe game on Discord. Invite your friends or play against our robot, a fearsome opponent. Use /tictactoe command to challenge someone else and use buttons to play, so simple! Works out-of-the-box, no configuration needed.

If you have a problem when using the bot, or you want to propose a new feature, feel free to open an issue.

Have fun! ๐Ÿฅณ

Requirements

Before installing the bot, you need to create your own Discord Application. Then, you can install the bot via Docker or npm (check below!). If you are not a programmer, I recommend you to opt for Docker because its the easiest solution.

โš ๏ธ Make sure your Discord bot has these permissions in all channels where games can be played: "Read message history", "Send messages", "View channel", "Application commands" or "Add reactions" depending on what you plan to use.

Installation

The module is suitable for discord.js v12, v13 and v14. Check the table below to see which version meets your needs.

discord.js Node.JS Module version Status NPM package Docker image
v14.* 16.9+ v4.* Active discord-tictactoe@^4 utarwyn/discord-tictactoe@4
v13.* 16.6+ v3.* Active discord-tictactoe@^3 utarwyn/discord-tictactoe@3
v12.* 14+ v2.* Legacy discord-tictactoe@^2 utarwyn/discord-tictactoe@2

The bot works out-of-the-box. But if you want to configure it, check config.example.json file in the config folder.

๐Ÿ”ฅ Discord buttons are only supported from v3 of the module.

Running via Docker

  1. Make sure to have Docker installed.
  2. Start Docker container based on one of our DockerHub images using an API token:
    docker run -e TOKEN=YOUR_TOKEN utarwyn/discord-tictactoe@4
  3. You can pass options directly with -e OPTION_NAME=option_value or use the option -v $(pwd)/config/config.json:/app/config/config.json to load an entire config file.

Running via Node.js

  1. Check with node -v that you are running appropriate Node.js version.
  2. Install the project from npm:
    npm install discord-tictactoe@^4 or yarn add discord-tictactoe@^4
  3. Import module into your script:
    const TicTacToe = require('discord-tictactoe');
  4. Check usage examples in this wiki page.

Setup slash command โœจ

Slash command are enabled by default starting from v3!
Just mention the bot with tttdeploy somewhere in your server to install it (admin only).

๐Ÿš€ Want more info? Check this detailed guide.

License

"Discord TicTacToe" is open-sourced software licensed under the Apache-2.0 license.


GitHub @utarwyn ย ยทย  Twitter @Utarwyn

discord-tictactoe's People

Contributors

utarwyn avatar dependabot[bot] avatar gorniaky avatar kaysil avatar pggamer2 avatar dependabot-preview[bot] avatar bestinspire avatar putsbam avatar komashifx avatar imluckycraft avatar nfytx avatar ninelel avatar proxyping avatar commanderroot avatar mrnothingslee-sudo 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.