Skip to content
Discord bot for handling ReSwitched moderation tasks and such, (n)ext-(g)en rewrite of Robocop
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
helpers Pleasing my neurodiverse traits Jun 22, 2019
.gitignore Get rid of data folder on git, add it to gitignore, gen files needed at Dec 27, 2018
LICENSE Initial commit Mar 8, 2018 Add a tiny note to README about role position Aug 6, 2019 Don't force our event loop, use dpy's one Jun 25, 2019 Create Jun 12, 2019 update source_url Mar 11, 2019
requirements.txt Don't force our event loop, use dpy's one Jun 25, 2019


Next-gen rewrite of Kurisu/Robocop bot used on ReSwitched bot with rewrite, designed to be relatively clean, consistent and un-bloated.

Code is based on and

How to run

  • Copy to, configure all necessary parts to your server.
  • (obviously) Add the bot to your guild. Many resources about this online.
  • If you haven't already done this already, move the bot's role above the roles it'll need to manage, or else it won't function properly, this is especially important for verification as it doesn't work otherwise.
  • Install python3.6+.
  • Install python dependencies (pip3 install -Ur requirements.txt, you might need to put sudo -H before that)
  • If you're moving from Kurisu or Robocop: Follow Tips for people moving from Kurisu/Robocop below.
  • Run (python3

To keep the bot running, you might want to use pm2 or a systemd service.

Tips for people moving from Kurisu/Robocop

If you're moving from Kurisu/Robocop, and want to preserve your data, you'll want to do the following steps:

  • Copy your data folder over.
  • Rename your data/warnsv2.json file to data/userlog.json.
  • Edit data/restrictions.json and replace role names ("Muted" etc) with role IDs (526500080879140874 etc). Make sure to have it as int, not as str (don't wrap role id with " or ').


All Robocop features are now supported.

List of added Kurisu/Robocop features

  • .py configs
  • membercount command
  • Meme commands and pegaswitch (honestly the easiest part)
  • source command
  • robocop command
  • Verification: Actual verification system
  • Verification: Reset command
  • Logging: joins
  • Logging: leaves
  • Logging: role changes
  • Logging: bans
  • Logging: kicks
  • Moderation: speak
  • Moderation: ban
  • Moderation: silentban
  • Moderation: kick
  • Moderation: userinfo
  • Moderation: approve-revoke (community)
  • Moderation: addhacker-removehacker (hacker)
  • Moderation: probate-unprobate (participant)
  • Moderation: lock-softlock-unlock (channel lockdown)
  • Moderation: mute-unmute
  • Moderation: playing
  • Moderation: botnickname
  • Moderation: nickname
  • Moderation: clear/purge
  • Moderation: restrictions (people who leave with muted role will get muted role on join)
  • Warns: warn
  • Warns: listwarns-listwarnsid
  • Warns: clearwarns-clearwarnsid
  • Warns: delwarnid-delwarn
  • .serr and .err (thanks tomger!)

The main goal of this project, to get Robocop functionality done, is complete.

Secondary goal is adding new features:

  • Purge: On purge, send logs in form of txt file to server logs
  • New feature: Modmail
  • New feature: Submiterr (relies on modmail)
  • Feature creep: Shortlink completion (gl/ao/etc)
  • New moderation feature: timelock (channel lockdown with time, relies on robocronp)
Completed features

  • Better security, better checks and better guild whitelisting
  • Feature creep: Reminds
  • A system for running jobs in background with an interval (will be called robocronp)
  • Commands to list said jobs and remove them
  • New moderation feature: timemute (mute with time, relies on robocronp)
  • New moderation feature: timeban (ban with expiry, relies on robocronp)
  • Improvements to lockdown to ensure that staff can talk
  • New moderation feature: Display of mutes, bans and kicks on listwarns (.userlog now)
  • New moderation feature: User notes
  • New moderation feature: Reaction removing features (thanks misson20000!)
  • New moderation feature: User nickname change
  • New moderation feature: watch-unwatch
  • New moderation feature: tracking suspicious keywords
  • New moderation feature: tracking invites posted
  • New self-moderation feature: .mywarns
  • New feature: Highlights (problematic words automatically get posted to modmail channel, relies on modmail)

TODO for robocronp

  • Reduce code repetition on
  • Allow non-hour values on timed bans

the following require me to rethink some of the lockdown code, which I don't feel like

  • lockdown in helper
  • timelock command
  • working cronjob for unlock


Robocop-NG is currently developed and maintained by @aveao and @tumGER. The official bot is hosted by @yuukieve.

I (ave) would like to thank the following, in no particular order:

  • ReSwitched community, for being amazing
  • ihaveamac/ihaveahax and f916253 for the original kurisu/robocop
  • misson20000 for adding in reaction removal feature and putting up with my many BS requests on PR reviews
  • Everyone who contributed to robocop-ng in any way (reporting a bug, sending a PR, forking and hosting their own at their own guild, etc).
You can’t perform that action at this time.