GithubHelp home page GithubHelp logo

nitbot's Introduction

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

nitbot's People

Contributors

bheinks avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.