module SimpleBot

Direct including types

Defined in:

command.cr
simplebot.cr

Constant Summary

CACHE = Discord::Cache.new(CLIENT)
CLIENT = Discord::Client.new("Bot #{TOKEN}", intents: INTENTS)
COMMANDS = Array(SimpleBot::Command).new
Log = ::Log.for(self)
VERSION = "0.1.0"

Class Method Summary

Instance Method Summary

Class Method Detail

def self.check_if_owner(id : Discord::Snowflake) : Bool #

Checks if given Snowflake is in the OWNER constant


[View source]
def self.check_if_webhook(id : Discord::Snowflake) : Bool #

Checks if given Snowflake is in the WEBHOOK constant


[View source]
def self.interupt #

Hook run on SIGINT or SIGTERM signal


[View source]
def self.on_message(payload) #

Hook run on the Message Create Event


[View source]
def self.ready #

Hook run on the Ready Event


[View source]

Instance Method Detail

def start #

Starts bot session


[View source]