Skip to content

Repository files navigation

Omni4 Discord Bot

This is an implementation of the Omni4 game as a discord bot.

Omni4

Omni4 is a variation of Connect 4, but instead of only allowing straight lines and diagonals it allows lines in any direction (omnidirectional, hence the name).

Below is a reference sheet of what counts as a 4-long line:

Omni4 Reference Sheet

How to play

To play it, you can either add my bot to your server, or host it on your bot.

You can start a game with /omni4 <opponent>, or you can specify yourself as the opponent to play against yourself

Hosting yourself

To host it on your own bot, you will need to install node.js.

  1. Clone the repository with git clone https://github.com/SimonDMC/omni4 or download the code
  2. Add a file called config.json in the root directory as below and add the bot token and application id (which can be found in the General Information tab of your discord application)
{
    "token": "your bot token here",
    "clientId": "your application id here"
}
  1. Open a command prompt in the root of the project and run the following commands:
npm i
node ./deploy_commands.js
node ./index.js

After that, your bot should go online.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages