Launch Week Day 1: Socket for Jira Is Now Available.Learn More
Socket
Book a DemoSign in
Socket

discord-tictactoe

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discord-tictactoe

A modern Discord Bot for playing Tic-Tac-Toe

latest
Source
npmnpm
Version
4.2.2
Version published
Weekly downloads
153
-22.34%
Maintainers
1
Weekly downloads
 
Created
Source
Discord TicTacToe logo

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

GitHub release npm Downloads Available on DockerHub Quality Gate Status

demo

About

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

[!IMPORTANT] 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 v14 and requires an active LTS version of Node.

[!WARNING] Module v3 is unsupported as it uses the outdated discord.js v13. Please upgrade to v4 (discord-tictactoe@^4) which uses discord.js v14. v3 will no longer receive updates or support.

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

Running via Docker

  • Make sure to have Docker installed.
  • Start Docker container based on one of our DockerHub images using an API token:
    docker run -e TOKEN=YOUR_TOKEN utarwyn/discord-tictactoe@4
  • 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

  • Check with node -v that you are running appropriate Node.js version.
  • Install the project from npm:
    npm install discord-tictactoe or yarn add discord-tictactoe
  • Import module into your script:
    const TicTacToe = require('discord-tictactoe');
    
  • 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

Keywords

discord

FAQs

Package last updated on 10 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts