Nods and Nod Accessories.
Go to file
Skylar Grant e0c0dff82d
All checks were successful
NodBot Production Dockerization / build (pull_request) Successful in 17s
v3.4.0-b
2024-09-26 19:39:19 -04:00
.gitea/workflows Might need to pull after checking out, oops 2024-09-26 19:37:35 -04:00
CustomModules Moved all button handling to ButtonHandlers.js and cleaned up /save gifSearch 2024-09-26 19:30:41 -04:00
dot-commands Add aliases 2024-09-26 09:07:26 -04:00
slash-commands Moved all button handling to ButtonHandlers.js and cleaned up /save gifSearch 2024-09-26 19:30:41 -04:00
_clear-commands.js Move One Time Scripts back to root 2022-06-10 22:27:44 -04:00
_deploy-commands.js Move One Time Scripts back to root 2022-06-10 22:27:44 -04:00
_deploy-global.js fixed file name and fixed it to run properly 2022-06-20 19:00:18 -04:00
.dockerignore ignore .env 2022-06-10 23:02:27 -04:00
.eslintrc.json Initial commit 2021-09-22 12:10:52 -04:00
.gitignore Ignore new env format 2024-09-23 22:02:01 -04:00
CHANGELOG.md v3.4.0-b 2024-09-26 19:39:19 -04:00
config.json Add D-ATIS from clowd.io 2024-06-22 09:17:24 -04:00
Dockerfile Fix exec dir 2024-01-01 15:47:14 -05:00
functions.js Moved all button handling to ButtonHandlers.js and cleaned up /save gifSearch 2024-09-26 19:30:41 -04:00
main.js Moved all button handling to ButtonHandlers.js and cleaned up /save gifSearch 2024-09-26 19:30:41 -04:00
package.json Versioning -- v3.4.0 2024-09-26 09:43:05 -04:00
README.md v3.3.3 Documentation 2024-09-26 09:07:20 -04:00
strings.json Vastly improved the /help command 2024-09-23 22:01:19 -04:00
update.sh Make update script 2024-06-21 20:20:07 -04:00

About Nodbot

Nodbot is a content saving and serving Discord bot. Nodbot is able to search Tenor for GIFs, save custom copypastas, and look up marijuana strain information. Nodbot is in semi-active development by voidf1sh. It's buggy as hell and very shoddily built. Don't use it.

Nodbot Help

Use the /help command to see the bot's help message.

Create Docker Image

docker build --tag=name/nodbot .

Push Docker Image

docker push name/nodbot

Deploy NodBot Yourself

  1. Create an application at the Discord Developer Portal
  2. Convert the application into a Bot
  3. Note down the token provided and keep this safe. You cannot view this token again, only regenerate a new one.
  4. Create a Tenor account and obtain an API key.
  5. Install and configure MySQL or MariaDB with a user for the bot and a datbase
  • Create the table structure as outlined below (* Nodbot will soon create its own table structure)
  1. Configure your environment variables as outlined below.
  2. Fire it up with node main.js

Table Structure

Table: gifs
+-----------+---------------+------+-----+---------+----------------+
| Field     | Type          | Null | Key | Default | Extra          |
+-----------+---------------+------+-----+---------+----------------+
| id        | int(11)       | NO   | MUL | NULL    | auto_increment |
| name      | varchar(100)  | NO   |     | NULL    |                |
| embed_url | varchar(1000) | NO   |     | NULL    |                |
+-----------+---------------+------+-----+---------+----------------+

Table: joints
+---------+---------------+------+-----+---------+----------------+
| Field   | Type          | Null | Key | Default | Extra          |
+---------+---------------+------+-----+---------+----------------+
| id      | int(11)       | NO   | MUL | NULL    | auto_increment |
| content | varchar(1000) | NO   |     | NULL    |                |
+---------+---------------+------+-----+---------+----------------+

Table: pastas
+---------+---------------+------+-----+---------+----------------+
| Field   | Type          | Null | Key | Default | Extra          |
+---------+---------------+------+-----+---------+----------------+
| id      | int(11)       | NO   | MUL | NULL    | auto_increment |
| name    | varchar(100)  | NO   |     | NULL    |                |
| content | varchar(1900) | NO   |     | NULL    |                |
| iconurl | varchar(200)  | NO   |     | (url)   |                |
+---------+---------------+------+-----+---------+----------------+

Table: requests
+---------+---------------+------+-----+---------+----------------+
| Field   | Type          | Null | Key | Default | Extra          |
+---------+---------------+------+-----+---------+----------------+
| id      | int(11)       | NO   | MUL | NULL    | auto_increment |
| author  | varchar(100)  | NO   |     | NULL    |                |
| request | varchar(1000) | NO   |     | NULL    |                |
| status  | varchar(10)   | YES  |     | Active  |                |
+---------+---------------+------+-----+---------+----------------+

Table: strains
+---------+-------------+------+-----+---------+-------+
| Field   | Type        | Null | Key | Default | Extra |
+---------+-------------+------+-----+---------+-------+
| id      | smallint(6) | NO   |     | NULL    |       |
| name    | varchar(60) | YES  |     | NULL    |       |
| type    | varchar(10) | YES  |     | NULL    |       |
| effects | varchar(80) | YES  |     | NULL    |       |
| ailment | varchar(70) | YES  |     | NULL    |       |
| flavor  | varchar(30) | YES  |     | NULL    |       |
+---------+-------------+------+-----+---------+-------+

Environment Variables

TOKEN=<your bot's token from step 3>
isDev=<true/false>
dbHost=<mySQL host>
dbPort=<mySQL port (3306)>
dbUser=<mySQL username>
dbPass=<mySQL user password>
dbName=<mySQL table name>
tenorAPIKey=<Tenor API Key>
ownerId=<your Discord user ID>
statusChannelId=<Discord channel ID of channel used for status messages>
clientId=<Discord user ID of your bot>