Skip to content

bheinks/nitbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nitbot

N - Not
I - In
T - The
B - Bible
O
T

A simple Discord bot that can tell you which words in a message aren't found in the Bible.

Requirements

python = "^3.9"
discord-py = "^2.2.2"
python-decouple = "^3.8"
nltk = "^3.8.1"
contractions = "^0.1.73"

Installation

Clone the repository to your destination of choice:

git clone https://github.com/bheinks/nitbot.git

Install required libraries:

pip install -r requirements.txt

This script uses NLTK and requires the Punkt sentence tokenizer. Run the following in a Python shell:

import nltk
nltk.download('punkt')

Use of this bot also requires a Discord bot account. Instructions can be found here. Once created, copy your token and keep it handy (will either be passed in via command line or set as an environment variable).

Usage

usage: nitbot.py [-h] [-s SOURCE] [-t TOKEN]

A simple Discord bot to tell you if your users' deranged ramblings are holy or not

options:
  -h, --help            show this help message and exit
  -s SOURCE, --source SOURCE
                        newline-delimited bible source file (defaults to KJV in English)
  -t TOKEN, --token TOKEN
                        Discord token (overrides DISCORD_TOKEN environment variable)

Example of a systemd service:

[Unit]
Description=nitbot Discord bot service
After=network-online.target

[Service]
Type=simple
Restart=always
WorkingDirectory=/path/to/nitbot
ExecStart=/path/to/nitbot/nitbot.py
Environment=DISCORD_TOKEN=...

[Install]
WantedBy=network-online.target

Once running, simply invite the bot to your server and reply to a message with !nitb to analyze the replied-to message, or supply the text to be analyzed following !nitb if not in reply.

Examples

Used in reply:

Screenshot of using nitbot in reply to a message with the text: "inspired by a dumb twitter bot, I made an equally dumb discord bot that tells you whether or not the words in a message are in the bible"

Used directly:

Screenshot of using nitbot directly with the lyrics of 100 gecs' money machine

About

A simple Discord bot to tell you if your users' deranged ramblings are holy or not

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages