GithubHelp home page GithubHelp logo

servusdei2018 / biblebot Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 1.0 54 KB

A Discord bot to quote the Bible

License: GNU General Public License v3.0

Makefile 22.19% Go 77.81%
discord discord-bot bible christianity

biblebot's Introduction

BibleBot โœ

A cross-platform, fast and lightweight discord bot to quote the Bible.

Features

  • Fully cross-platform (Mac, Windows, Linux)
  • Fully configurable via the command line
  • Performant, lightweight and optimized design
  • Limit the amount of verses that may be requested at one time
  • Configure how long the bot pauses after posting a message

Commands

  • #biblebot BOOK CHAPTER VERSE - quote the specified verse
  • #biblebot BOOK CHAPTER VERSE:VERSE - quote the specified verses
  • #biblebot status - report whether the bot is online
  • #biblebot version - display biblebot's version
  • #biblebot help - display information on biblebot's commands

Installation

  • First, download one of the following prebuilt binaries below. Just match up your OS and chipset.
  • Second, make sure you have a valid discord bot token. Refer to discord's official documentation if you don't know how to get one.
  • Run the executable. On Mac/Linux, this shall be something like ./biblebot -token="PUT_YOUR_TOKEN_HERE". On Windows, you'll type something like biblebot.exe -token="PUT_YOUR_TOKEN_HERE".
  • If you like, you can configure the Max_Verses and Timeout configuration. For this, see Configuration.

Mac

Windows

Linux

Configuration

BibleBot is highly configurable. You may configure the maximum amount of verses it can quote at a time (default is 5) as well as how long it pauses between posts, to make sure it doesn't spam (the default is 3 seconds). BibleBot is configured via commandline flags.

To configure the maximum amount of verses, use the "-verses=YOUR_AMOUNT_HERE" flag. For example, if I want my bot to only allow up to 10 verses in one quote, I'd use "-verses=10".

To configure the timeout in seconds to pause after posting a message, use the "-timeout=YOUR_TIMEOUT_HERE" flag. For example, if I want my bot to pause 30 seconds after posting a message, I'd use "-timeout=30".

Here are examples of running BibleBot on Linux or Mac. If you're on Windows, substitute biblebot.exe instead of ./biblebot.

Example One: Maximum verses of 4

./biblebot -token="MY_TOKEN" -verses=4

Example Two: Timeout of 5 seconds

./biblebot -token="MY_TOKEN" -timeout=5

Example Three: Maximum verses of 3 and timeout of 10 seconds

./biblebot -token="MY_TOKEN" -verses=3 -timeout=10

Building

If you are a developer and want to compile your own version of BibleBot:

  • Make sure you have a working Go environment with Go installed.
  • Download this repository, and unzip it.
  • From a terminal, run either go build -ldflags "-s -w", or if you have GNU Make, just type make.

Contributing

Contributions are welcome.

Copyright

Copyright (c) 2021, Nathanael Bracy

License

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

biblebot's People

Contributors

dependabot[bot] avatar servusdei2018 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

forkkit

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.