npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ahmed-discord-tictactoe

v3.1.1

Published

A modern Discord Bot for playing Tic-Tac-Toe

Downloads

4

Readme

"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 and v13. Check the table below to see which version meets your needs.

discord.js | Node.JS | Module version | Status | NPM package | Docker image | ---------- | ------- | -------------- | ------ | -------------------- | --------------------------- | 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@3
  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@^3 or yarn add discord-tictactoe@^3
  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