Giter VIP home page Giter VIP logo

cerebrum's People

Contributors

dependabot[bot] avatar perrycate avatar

Watchers

 avatar  avatar

cerebrum's Issues

Write tests

Don't have to be super comprehensive, but we're at the point where I need to be able to make sure changes don't break everything without having to test manually in discord.

Add random commands

Instead of saving a fixed response to a given trigger, users could save (and later add) multiple potential responses, from which one is selected every time that command is triggered.

Current thoughts:
"Maybe instead of having the command be !record, I'll make it !save and !add (or similar.) One to make it a single command, the other to add/create a random command. If someone tries to save a random command or add to a single command, it'll give an error."

Will probably need to include a mechanism for enumerating the currently saved responses, and removing some of them.

Enable server backups

I'm not comfortable having people save commands until I'm confident that I won't accidentally nuke said commands at some point.

Add roles whitelist

Newton would respond* in any channel to those with that role, not just the admin channel.

*Newton would need write permissions to that channel though, so mods still have a way to restrict things.
** Should only respond to ~commands, not !commands.

Add README.md

I don't really care about trying to explain that this code isn't useless, but I should at least make it clear how to get started for anyone interested in contributing.

Fix line breaks

Saved line breaks are converted to spaces instead of being kept as newlines. Use partition instead of split() when parsing input.

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.