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.
- If you don't already have a Discord account, create one at https://discord.com/.
- If (or when) you have an account, go to https://discord.com/developers/applications and create a new application.
- 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".
- 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.
- 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".
- 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
- Go to your bot's application page, then to the "Bot" tab. Then, generate and copy the token under the "Token" section.
- Paste the bot token in the config.json file under the "TOKEN" variable.
- Download and install Node if you don't already have it, at https://nodejs.org/.
- Then, to install the dependencies, run the following command:
$ npm install
Alternatively, you can run install_packages.bat.
- Then, run the following command to start the bot:
$ node ./src
Alternatively, you can run start.bat.
- 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á!
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.
This project uses Discord.js and Node.
Package | Version |
---|---|
Discord.js | 13.8.1 |