Bolt
Search…
About
This bot is not at a stable state and it's very likely to have breaking changes on a regular basis until the author is happy with it
Bolt is an extensible chat bot written in Python, inspired by Errbot and Hubot projects. The goal of this project is to provide a simple to extend bot framework for Discord.

Batteries included:

Commands
Interval
Webhooks
Discord Events
Discord Objects
1
from bolt import Plugin
2
from bolt import command
3
4
class Example(Plugin):
5
6
@command("hello")
7
def on_hello(self, event):
8
event.channel.say(f"Hello {event.sender.name}")
Copied!
For more information, see these pages:
1
from bolt import Plugin
2
from bolt import interval
3
4
class Example(Plugin):
5
6
@interval(60)
7
def update_a_thing(self, event):
8
# do stuff
Copied!
For more information, see these pages:
1
from bolt import Plugin
2
from bolt import webhook
3
4
class Example(Plugin):
5
6
@webhook('/hookme', methods=['GET'])
7
def webhook(self, request):
8
# do stuff
Copied!
For more information, see these pages:
1
from bolt import Plugin
2
from bolt import subscriber
3
from bolt.discord import Events
4
5
class Example(Plugin):
6
7
@subscriber(Events.MESSAGE_REACTION_ADD)
8
def on_message_reaction_add(self, event):
9
# do stuff
Copied!
For more information, see these pages:
1
from bolt import Plugin
2
from bolt import command
3
4
class Example(Plugin):
5
6
@command("kick me!")
7
def on_kick(self, event):
8
event.sender.kick(reason="You told me to!")
Copied!
For more information, see these pages:
Bolt originally started out as a simple Trivia Bot that used long polling and webhooks to read and write to chat channels.
I became obsessed with making this bot more robust and at that time, no bots existed for Discord, so this bot evolved into a fully vetted framework that I could use to build functionality off of.
This project is a place I can experiment with design ideas and evolve a sense of personal code standards. I treat it more as an academic project to learn about new libraries and tools available to me as Python continues to grow.
Last modified 1yr ago
Copy link