Coder Social home page Coder Social logo

robbb's Introduction

Say hi to Robbb!

A Discord bot for the Unixporn community

Now written in a good language!

Dependencies

  • Rust
  • sqlx-cli (if you need to change the database schema)

Set up environment variables

The bot reads the data it needs from environment variables. To see which values have to be set, check out the provided .env.example file. you can use export $(cat .env) to export the variables from a .env file in your current environment.

Extra information

Most environment variables are retrieved by right clicking, and copying the ID of the relevant channel, category, role. You need to have developer mode turned on for that to be possible.

  • TOKEN: The discord bot token, retrieved from: https://discord.com/developers/applications
  • GUILD: The ID of the guild, where the host resides
  • ROLE_*: IDs of relevant roles, easily copied from Server Settings -> Roles.
  • ROLE_COLOR: Unlike other ROLE variables, this is a comma (,) separated list, ex.: ROLES_COLOR=825158129711972372,635627141123538966
  • CHANNEL_*: Channel IDs, based on which the bot performs moderation or responses
  • ATTACHMENT_CACHE_*: Location (directory) and size of local message attachments cache (in case they get deleted)

Additionally, you can use this script to generate the role & channel variables from a template server

Database

The bot uses a SQLite database, which does not have to be started externally. The included sqlite-db file is not the actual database used in production, but just an empty database used for development. To change and work with the database, use sqlx-cli to add migrations and generate a new, updated database file.

robbb's People

Contributors

elkowar avatar dependabot[bot] avatar mlvzk avatar eepykate avatar legendofmiracles avatar druskus20 avatar auscyber avatar willeccles avatar davidv171 avatar tanish2002 avatar moni-dz avatar ltperiwinkle avatar javacafe01 avatar jimmysit0 avatar safinsingh avatar its-darsh avatar amepebbles avatar undefineddarkness avatar dylanaraps avatar mtvare6 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.