Skip to content

SXYTEM/UrbanOctoWaffle

Repository files navigation

UrbanOctoWaffle

This is a Discord bot. It replies to messages containg words ending in "ing", with the same words, excpet ending in "ong", and vice versa.

Commit Activity Bugs

How to get started

  1. If you don't already have a Discord account, create one at https://discord.com/.
  2. If (or when) you have an account, go to https://discord.com/developers/applications and create a new application.
  3. Go to the application's "Bot" tab and click the "Add Bot" button. Below, in the "Privileged Gateway Intents" section, turn on "Message Content Intent".
  4. Go to the "OAuth2" section of the application, and go to the "URL Generator" subsection. In "Scopes", select "bot". Then, in the "Bot Permissions" section, select the "Send Messages" permission.
  5. Down in the "Generated URL" section, copy the URL. Open the URL, and you'll be prompted to log into Discord. Then, you'll be prompted to invite the bot. Select the server, and click "Authorise".
  6. Go to UrbanOctoWaffle's GitHub page, and download the repository. Alternatively, you can clone the repository using Git (download at https://git-scm.com/) by running the following command:
    $ git init
    $ git clone https://github.com/SXYTEM/UrbanOctoWaffle
  7. Go to your bot's application page, then to the "Bot" tab. Then, generate and copy the token under the "Token" section.
  8. Paste the bot token in the config.json file under the "TOKEN" variable.
  9. Download and install Node if you don't already have it, at https://nodejs.org/.
  10. Then, to install the dependencies, run the following command:
$ npm install

Alternatively, you can run install_packages.bat.

  1. Then, run the following command to start the bot:
$ node ./src

Alternatively, you can run start.bat.

  1. Go to the server to which you invited the bot, and send a message containing a word ending in "ing". The bot will reply with the same words, except ending in "ong". If a word ends with "ong" the bot will answer with the same word, but ending with "ing". Voilá!

Configuration

The program can be configured in the config.json file. There exists a default configuration file (./src/default_config.json), and you can restore the config file to its defaults by running the following command:

$ copy ./src/default_config.json config.json

Alternatively, you can run default_config.bat, and you'll be prompted with a confirmation message, to which you have to answer "y" to replace the config file with its defaults.

Dependencies

This project uses Discord.js and Node.

Package Version
Discord.js 13.8.1

About

UrbanOctoWaffle is a Discord bot. It replies to messages containing words ending in "ing", with the same words, except ending in "ong", and vice versa.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published