class Discord::SaucenaoPlugin

Defined in:

discord_plugins/saucenao.cr

Constructors

Instance Method Summary

Instance methods inherited from class Discord::DiscordPlugin

commands : Set(String) commands, execute(command, client, payload) execute, name : String name, passive(client, payload)
passive : Bool
passive

Constructor methods inherited from class Discord::DiscordPlugin

new(name : String, commands : Set(String) = Set(String).new, passive : Bool = false) new

Constructor Detail

def self.new(token : String) #

[View source]

Instance Method Detail

def construct_embed(sauce : Saucenao::Parser, url : String, limit : Int32 = 2, threshold : Float64 = 0) : Embed | Nil #

[View source]
def get_sauce(url : URI | String) : Saucenao::Parser | Nil #

[View source]
def passive(client, payload) #

[View source]