class Shroom::Config

Included Modules

Defined in:

shroom/config.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(token : String, channel : UInt64, prefixes : Array(String), commands : Hash(String, String), shitpost : Array(Array(String)), exchange : Hash(String, String), responses : Array(String), classifiers : Array(String), remind : Hash(String, Array(String)), enable_hello : Bool, hello : String, help : String) #

[View source]
def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]

Class Method Detail

def self.load(filename) #

[View source]

Instance Method Detail

def channel : UInt64 #

[View source]
def classifiers : Array(String) #

[View source]
def commands : Hash(String, String) #

[View source]
def enable_hello? : Bool #

[View source]
def exchange : Hash(String, String) #

[View source]
def hello : String #

[View source]
def help : String #

[View source]
def prefixes : Array(String) #

[View source]
def remind : Hash(String, Array(String)) #

[View source]
def responses : Array(String) #

[View source]
def shitpost : Array(Array(String)) #

[View source]
def token : String #

[View source]