The source code of SSPŠ KB discord bot

Overview

Workshop bot

This repository contains the source code of SSPŠ KB discord bot.

Deploying

This project is automatically built and deployed with docker, so you can simply run it with

docker run ghcr.io/ssps-kb/workshop-bot

if the pull and start was successful, you'll get There is no Config.toml in current directory nor in /etc/workshop-bot error. See configuration

Tags

Here is a list of tags you can find in the registry, and it's description.

Tag Description
latest The latest stable (tagged) release
x.x.x The specific version (stable) ie. 0.3.0
edge Bleeding edge version, contents of main branch
sha-xxx Specific commit. ie. adbfca5 = sha-adbfca5

Configuration

Most of this project's configuration is self-explanatory if you ever set up a discord bot. The project looks in current directory for Config.toml and if there is no configuration it checks /etc/workshop-bot. If running in docker, you'll want to either add a volume to /app/Config.toml or even better add a whole folder to /etc/workshop-bot.

Instead of using names, the bot is using IDs to find channels.

Discord token (discord_token)

This is the only required value, it is used to authenticate with discord. NEVER SHARE IT WITH ANYONE. To get it create a bot on https://discord.com/developers. If you don't know how to do that, search "How to create a discord bot", it has been explained over thousand times.

Workshop invite channel (workshop_invite_channel)

This configuration option is basically useless. It's used to create and log an invite at the bot's startup.
It's only used for the invite to look more professional.

Guilds config

SOONTM

License

Licensed under either the Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this repository by you, shall be dual licensed as above, without any additional terms or conditions.
Comments
  • Publish New Versions

    Publish New Versions

    Version Updates

    Merging this PR will release new versions of the following packages based on your change files.

    workshop-bot

    [0.4.0]

    • Add /amimir command
    • Add /fr command
    • Add a /windont command
      • d32ca1b Windownt command (#24) on 2023-04-01
      • cf9527e fix: changes files on 2023-04-03
    version updates 
    opened by github-actions[bot] 1
  • Added a tutorial for making gif commands

    Added a tutorial for making gif commands

    tutorial for making new gif commands easily

    I had an idea that if someone from the ssps server wanted to create a gif command, they could just use this guide and maybe learn something new about git like I did. Maybe it's not a good idea, I'll let you decide. I also fixed indentation in mod.rs

    documentation enhancement 
    opened by oliverrr123 1
  • chore(deps): update peter-evans/create-pull-request action to v5

    chore(deps): update peter-evans/create-pull-request action to v5

    Mend Renovate

    This PR contains the following updates:

    | Package | Type | Update | Change | |---|---|---|---| | peter-evans/create-pull-request | action | major | v4 -> v5 |


    Release Notes

    peter-evans/create-pull-request

    v5

    Compare Source


    Configuration

    📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, check this box

    This PR has been generated by Mend Renovate. View repository job log here.

    opened by renovate[bot] 0
  • Publish New Versions

    Publish New Versions

    Version Updates

    Merging this PR will release new versions of the following packages based on your change files.

    workshop-bot

    [0.4.2]

    • Register /fr command on start
      • 6cefde1 added /fr comand (#23) on 2023-03-31
      • d32ca1b Windownt command (#24) on 2023-04-01
      • cf9527e fix: changes files on 2023-04-03
      • cc20837 publish new versions (#22) on 2023-04-03
      • 4d8e171 fix: Register /fr command on start (#31) on 2023-04-04
    • Bigger Trnka image <3
    version updates 
    opened by github-actions[bot] 0
  • Publish New Versions

    Publish New Versions

    Version Updates

    Merging this PR will release new versions of the following packages based on your change files.

    workshop-bot

    [0.4.1]

    • Embed fix
      • aeac2bd amimir + windont embed fix (#26) on 2023-04-03
      • e2ad293 fix: fix change type doesnt exist on 2023-04-03
    • Added missing i18n entries for amimir and windont commands
    version updates 
    opened by github-actions[bot] 0
  • fix: attribution to Tenor GIFs

    fix: attribution to Tenor GIFs

    This patch adds a "Via Tenor" footer to GIFs sent by commands that use the Tenor API. The previous PR was closed because there were 14 commits when only 1 file change was really necessary.

    opened by EquinoxAlpha 0
  • feat: add /cat command

    feat: add /cat command

    This pull request uses the Tenor API to fetch kitty review gifs from Tenor and post them in the Discord channel. There is a similar PR, but it uses a static list of gifs. This can be easily modified to search for any other term. The Tenor API key is stored in an environment variable (TENOR_API_KEY), because I couldn't figure out how to properly pass on the config struct to the command. This uses serde structs to deserialize the JSON data.

    It has been tested on my own server, and it works fine. If you don't want to bother with creating an API key, you can message me directly, though mine is compromised because I totally didn't include it in a commit on accident... (Edit: I'll regenerate it [Edit2: done])

    opened by EquinoxAlpha 0
  • Publish New Versions

    Publish New Versions

    Version Updates

    Merging this PR will release new versions of the following packages based on your change files.

    workshop-bot

    [0.3.3]

    • Add a /cat command that sends a random kitty review gif
      • 8c2b9ea feat: add /cat command (#16) on 2023-02-21
    • Add a /chad command
      • 7e60938 feat: add chad command on 2023-02-12
    • Add a /skull command
      • f094264 feat: add /skull command (#11) on 2023-02-17
    version updates 
    opened by github-actions[bot] 0
  • Publish New Versions

    Publish New Versions

    Version Updates

    Merging this PR will release new versions of the following packages based on your change files.

    workshop-bot

    [0.3.2]

    • Fixed deploy CI
      • 7db5400 ci: fx deploy ci on 2023-02-09
      • 7bd2cad publish new versions (#8) on 2023-02-09
      • 7afb478 chore: rename change on 2023-02-09
    version updates 
    opened by github-actions[bot] 0
  • Publish New Versions

    Publish New Versions

    Version Updates

    Merging this PR will release new versions of the following packages based on your change files.

    workshop-bot

    [0.3.1]

    • Fixed deploy CI
      • 7db5400 ci: fx deploy ci on 2023-02-09
    version updates 
    opened by github-actions[bot] 0
  • Publish New Versions

    Publish New Versions

    Version Updates

    Merging this PR will release new versions of the following packages based on your change files.

    workshop-bot

    [0.3.0]

    • Added logic to also check /etc/workshop-bot for configuration
      • 586e83b feat: add config checking on 2023-02-09
    version updates 
    opened by github-actions[bot] 0
  • Publish New Versions

    Publish New Versions

    Version Updates

    Merging this PR will release new versions of the following packages based on your change files.

    workshop-bot

    [0.4.3]

    • Fixed & resized the image for the windont command.
    version updates 
    opened by github-actions[bot] 0
Releases(workshop-bot-v0.4.2)
Owner
SSPŠ KB
SSPŠ KB
A rust(serenity) based discord bot for the hacksquad discord server

A Discord Bot for Hacksquad How to Deploy? Requirements Docker Docker Compose Steps To Run Copy the docker-compose.yml and .env.example files to your

HackSquad 5 Jan 4, 2023
Rewrite of the Discord Bot used for Managing the Infinity Bot List Servers.

Arcadia Rewrite of the Discord Bot used for Managing the Infinity Bot List Servers. Contributing Always run fmt.sh before making a Pull Request! MacOS

InfinityBotList 3 Dec 15, 2022
A discord bot that safely executes whatever rust you throw at it. Remote code execution as a service

RustBot Bot is still under development and not ready for production use RustBot is a discord bot that executes whatever rust code you throw at it. In

Conner Bradley 7 Jan 3, 2022
A simple bot for discord.

Rusky Um simples bot para o discord! ?? Executando ⚠️ Antes de tudo você precisa do Rust Instalado você pode instalar clicando aqui Preparando Primeir

Rusky 3 Aug 12, 2022
A Discord bot for lichess and Rosen related things

liro Liro is a Discord bot that follows in the footsteps of Lichess-discord-bot, without necessarily aiming to replace it. The main pain point that th

Sebastian Lauwers 5 Feb 16, 2022
Hi I'm Sophy, a discord bot in devlopment, soon I'll be available to help everyone (❁´◡`❁)

Sophy Bot Hi I'm Sophy, a discord bot in devlopment, soon I'll be available to help everyone (❁´◡`❁) Contribution Do you like me and want to help me?

Far Dragi 0 May 30, 2022
A Discord bot for sending GeoGuessr challenge links that uses the GeoGuessr API written in rust.

GeoGuessr-bot-rs This is a simple implementation of a discord bot that send GeoGuessr-challenge links on demand. Features: Slash-commands Lightning-fa

Luukas Pörtfors 6 Nov 18, 2022
🦴🤖 // A Discord bot about collecting all the Borpa

?? ?? Borpa Bot Borpa Bot is a Discord bot about collecting all the Borpa possible. If you dont know what a Borpa is you can find it here Crate Descri

mellowmarshe 1 Dec 19, 2021
A scriptable discord bot (WIP)

Status This project is currently a VERY EARLY WORK IN PROGRESS. Contact me on discord for more details: Jonas747#0001 (105487308693757952) BotLoader (

null 26 Dec 21, 2022
🦜 A hassle-free, highly performant, host it yourself Discord music bot built with Serenity in Rust. Powered by youtube-dl and Genius.

?? A hassle-free, highly performant and fast evolving Discord music bot built with Serenity in Rust. Deployment Usage Just create a bot account, copy

Miguel Mano 82 Dec 14, 2022
The best discord bot to annoy @a3mat

A3mat v pomoyke The best discord bot to annoy @a3mat Usage: This command moves pinged users n times: move <number> [users...] This command moves ping

null 1 Dec 31, 2021
A Discord bot to send updates on queries in tori.fi

torimies-rs How the bot works? The bot works by making requests to the undocumented (and very bad) tori.fi api endpoint. The users can add and remove

Luukas Pörtfors 19 Dec 29, 2022
A Discord bot for control and decentralization of threads management

Threadripper-bot A Discord bot for control and decentralization of threads management About Threadripper aims to serve some extra utilities to take be

S0ra 15 Dec 27, 2022
A small in-house bot of the TTC Discord Server

Welcome to The Terminal cafe Support Bot Repository Hello, hope you are having a nice day. This is the official repository for The Terminal Cafe Suppo

null 5 Jul 4, 2022
A Discord bot to send updates on queries in tori.fi

torimies-rs How the bot works? The bot works by making requests to the undocumented (and very bad) tori.fi api endpoint. The users can add and remove

Testausserveri ry 19 Dec 29, 2022
An experimental Discord bot using Serenity.

VoidBot An experimental Discord bot using Serenity. Environment Variables Can be set with a .env file. DISCORD_TOKEN: The token for your bot. (require

null 1 May 21, 2022
Yet another multi-purpose discord bot

virus yet another multi-purpose discord bot

miten 2 Jan 11, 2022
sentry - yet another multi-purpose discord bot

sentry - yet another multi-purpose discord bot

miten 1 Feb 17, 2022
This is a Discord bot written in Rust to translate to and from the Bottom Encoding Standard using bottom-rs and Serenity.

bottom-bot This is a Discord bot written in Rust to translate to and from the Bottom Encoding Standard using bottom-rs and Serenity. Ever had this pro

Bottom Software Foundation 11 Dec 10, 2022