module SimpleBot
Direct including types
Defined in:
command.crsimplebot.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
-
.check_if_owner(id : Discord::Snowflake) : Bool
Checks if given Snowflake is in the OWNER constant
-
.check_if_webhook(id : Discord::Snowflake) : Bool
Checks if given Snowflake is in the WEBHOOK constant
-
.interupt
Hook run on SIGINT or SIGTERM signal
-
.on_message(payload)
Hook run on the Message Create Event
-
.ready
Hook run on the Ready Event
Instance Method Summary
-
#start
Starts bot session
Class Method Detail
def self.check_if_owner(id : Discord::Snowflake) : Bool
#
Checks if given Snowflake is in the OWNER constant
def self.check_if_webhook(id : Discord::Snowflake) : Bool
#
Checks if given Snowflake is in the WEBHOOK constant