Giter Site home page Giter Site logo

bog's Introduction

Bog

On December 1, 2023, under orders from San Francisco county officials, Discord Inc. gave Clyde a lethal dose of pentobarbital. These orders came after he escaped his enclosure, where the ensuing hour-long rampage resulted in the mauling of several toddlers and an adult before he could be re-contained. Clyde will not be missed.

Bog is a Discord chatbot written in Rust using Serenity. He currently uses OpenRouter's API to generate responses to mentions using an LLM (Bog is currently hardcoded to run inference with the Mixtral-8x7B-Instruct model).

In his current form, Bog is a very basic prototype and mostly just serves as a conduit to learn Rust.

Usage

Bog authorizes with the Discord and OpenRouter APIs via a configuration file, config.toml, which must contain both a Discord client secret and an OpenRouter API key, as well as a name for Bog:

[secrets]
discord_token="YOUR_DISCORD_TOKEN"
openrouter_token="YOUR_OPENROUTER_TOKEN"

[bot]
name="Bog"

See discord/oauth2 or openrouter/api-keys for more info on access tokens.

If running Bog via cargo run, Bog expects the config to be found in the package's root directory.

bog's People

Contributors

plsuwu avatar dependabot[bot] 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.