Giter Site home page Giter Site logo

eviedelta / berry Goto Github PK

View Code? Open in Web Editor NEW

This project forked from termora/berry

0.0 0.0 0.0 7.98 MB

Searchable glossary bot for Discord

Home Page: https://termora.org/

License: GNU Affero General Public License v3.0

Go 97.17% CSS 0.61% HTML 2.17% Shell 0.05%

berry's Introduction

Berry

Berry is a searchable glossary bot for Discord.

Requirements

  • PostgreSQL (only 12.5 tested)
  • Go 1.16 or later
  • For the site and API: a reverse proxy (such as Caddy or nginx)

Configuration

Each executable has its own configuration file, located next to the executable.

Running

This is still very much a WIP. Although we've done our best to not hardcode names and links into the source code, they still show up in some places (notably the site), so we recommend going through the source and fixing all those references before you run it.

All of these executables are standalone and can be run independently from each other.

Bot

  1. go build in the cmd/bot directory
  2. Copy config.sample.json to config.json and fill it in
  3. Run the executable

Required configuration keys

- auth:
  - token (string): Discord bot token
  - database_url (string): dsn for the Postgres database
- bot:
  - prefixes: ([]string): default prefixes used
  - bot_owners: ([]int): bot owner IDs, these users can use all commands including admin commands

All other keys are optional but strongly recommended.

API

  1. go build in the cmd/bot directory
  2. Copy config.sample.yaml to config.yaml and fill it in
  3. Run the executable

Site

  1. go build in the cmd/bot directory
  2. Copy config.sample.yaml to config.yaml and fill it in
  3. Run the executable

License

Copyright (C) 2021, Starshine System

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero 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 Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.

berry's People

Contributors

starshine-sys avatar eviedelta 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.