A Utility Discord Bot https://15318.de/bampersand
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
David f788be0589
Allow Any-Emoji Board support
2 weeks ago
spec Add some comments 4 weeks ago
src Allow Any-Emoji Board support 2 weeks ago
.env.example Some cleanup 1 month ago
.gitignore Switch to dotenv for configuration 1 month ago
CONTRIBUTING.md Follow my own formatting guidelines 4 weeks ago
LICENSE Intial Commit 2 months ago
README.md Update README yet again 1 month ago
shard.lock Switch to dotenv for configuration 1 month ago
shard.yml Allow Any-Emoji Board support 2 weeks ago

README.md

Bampersand

Simple Utility Bot for Discord written in Crystal and discordcr. See the project wiki for documentation.

Development

Adapt .env.example to your needs and rename it to .env. It’s gitignored by default. Create a sqlite3 database called bampersand.sqlite3 with the following tables:

  1. create table state (guild_id unsigned integer unique on conflict replace, features unsigned integer, mirror_in unsigned integer, mirror_out unsigned integer, board_emoji string, board_channel unsigned integer, board_min_reacts unsigned integer, join_channel unsigned integer, join_text string, leave_channel unsigned integer, leave_text string);
  2. create table board (source_message unsigned integer unique on conflict replace, board_message unsigned integer);
  3. create table tags (guild_id unsigned integer, name string, content string, constraint yikes unique (guild_id, name) on conflict replace);
  4. create table slowmodes (channel_id unsigned integer, secs unsigned integer);
  5. create table warnings (guild_id unsigned integer, user_id unsigned integer, mod_id unsigned integer, text string, timestamp date default current_timestamp);
  6. create table perms (guild_id unsigned integer unique on conflict replace, admin_id unsigned integer, moderator_id unsigned integer);

Contributing

This project is located on Gitea and all commits are mirrored to GitLab and GitHub for discoverability and easier contributions. The issue tracker is exclusively on Gitea.

  1. Log in on Gitea using your favourite platform and fork or fork directly from your favourite platform.
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Please follow the guidelines in CONTRIBUTING.md.

Contributors

  • deing - creator and maintainer