slash

Version, currently main branch1 version
  • main branchlatestNov 4, 2025

github.com/greenbigfrog/mini-tmp

No description declared in shard.yml.

0 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  slash:
    github: greenbigfrog/mini-tmp
    branch: main

main is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
0.27.0
License
MIT
Author
Jonathan B.
Targets
  • slash from src/entrypoint.cr
  • external from src/external/external.cr

Dependencies

Runtime Dependencies

  • dhash*github: greenbigfrog/dhash-cr, branch: main
  • discordcr*github: greenbigfrog/discordcr-1, branch: special

Development Dependencies

  • ameba~> 0.13.0github: crystal-ameba/amebadev

README

mini-slash

Highlighter/Auxiliary bot for TCD

Dependencies

  • Docker
  • libvips (including GI Bindings)

Usage

Uses TOKEN, SERVER, and takes path to file as argument. Requires the Server Members Intent to be turned in the Discord Dev Dashboard.

---
linked-joins:
  731584499300696126: 749361970721063003
dhash:
  some-pfp: 99805943371466503880474332147715089847241471423457971211378056886063464448
admins:
- 163607982473609216
whitelist_roles:
- 257497572183113728
notifications: 525783962023362616
action_log: 525783962023362616
pfp_log: 525783962023362616
ban_message: "You have been banned from The Coding Den. Reason: `%s`.\nTo appeal, visit <https://tcd.one/appeal>"
groups:
  - name: badware
    mode: delete
  	words:
  	  - skype
  	  - teamspeak
    whitelist:
      - discord
  - name: spam
    mode: softban
    words:
      - somepornsite101010.com
    whitelist:
      - discord
  - name: slurs
    mode: log
    words:
      - jap
    whitelist:
      - japan
message_cache_config:
  size: 500
  min_message_length: 10
  short_message_length: 15
  short_message_similarity_threshold: 85
  similarity_threshold: 60
  similarity_threshold_single: 128
  max_time_diff_minutes: 3
  max_size_diff_percentage: 30
  ignored_channels: [856970378545725463]
  point_requirement_single: 5
  point_requirement_multi: 10
  points_on_match: 1
  point_overrides:
    nitro: 2

Available Modes

  • Log Simply sends a notification to a preset channel via the config
  • Delete Deletes the message
  • Softban Deletes all the messages the user sent the past 24h by banning them, and unbanning them again
  • Ban Same as above, except they don't get unbanned

Docker

docker compose up

Contributing

  1. Fork it (https://github.com/TheCodingDen/mini-slash)
  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

Contributors