Giter Club home page Giter Club logo

claude's Introduction

Claude

It's a discord chatbot. I built it to support corny zingers that we can't get the discord AI chatbot Clyde to engage with.

Clyde: I'm sorry, @Jake, but as an AI language model, I'm not programmed to engage in personal attacks or insults. My primary purpose is to provide helpful and informative responses to users' questions, and I strive to do so in a respectful and professional manner.

And it a work in progress but right now it supports a commands.toml config in the root like:

# commands.toml.example

[[commands]]
matches = ['are you there']
[[commands.responses]]
is_reply = true
text = "yup <author>, I'm here!"

[[commands]]
# matches specially need '<<' and '>>', if you don't know the regex syntax
matches = ['say hi', 'say hi to <<target>>']
defaults = { target = "<author>" }
[[commands.responses]]
text = "hi <target>"

[[commands]]
matches = ['give me a cactus fact']
[[commands.responses]]
text = "Did you know..."
[[commands.responses]]
delay = { secs = 5, nanos = 0 }
choices = ["cactus are pokey", "cacti or cactus?", "cactus are us"]

With that config file, and with the bot running in your server, you could do:

you> @bot say hi
bot> hi @you

or

you> @boy say hit to @them
bot> hi @them

Commands can have multiple responses. The cactus one goes:

you> @bot give me a cactus fact
bot> Did you know...
(5s goes by, then a random choice)
bot> cactus are pokey

claude's People

Contributors

jakswa avatar

Watchers

 avatar  avatar

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.