Remove reaction add
This commit is contained in:
parent
e1c2710a3b
commit
bd638e3d23
15
src/main.rs
15
src/main.rs
|
@ -47,7 +47,8 @@ impl TypeMapKey for ShardManagerContainer {
|
||||||
type Value = Arc<Mutex<ShardManager>>;
|
type Value = Arc<Mutex<ShardManager>>;
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO CLAP FOR CLI
|
// TODO CLAP FOR CLI
|
||||||
|
// TODO USE LOG
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() -> IoResult<()> {
|
async fn main() -> IoResult<()> {
|
||||||
let conf: config::Conf = toml::from_str(&std::fs::read_to_string("Conf.toml")?)?;
|
let conf: config::Conf = toml::from_str(&std::fs::read_to_string("Conf.toml")?)?;
|
||||||
|
@ -203,18 +204,6 @@ impl Messages {
|
||||||
|
|
||||||
#[async_trait]
|
#[async_trait]
|
||||||
impl EventHandler for Messages {
|
impl EventHandler for Messages {
|
||||||
async fn reaction_add(&self, _ctx: Context, reaction: Reaction) {
|
|
||||||
debugln!("Reaction added : {:?}", reaction);
|
|
||||||
/*
|
|
||||||
if let Err(e) = self._reaction_add(ctx, reaction).await {
|
|
||||||
eprintln!("{}", e);
|
|
||||||
}*/
|
|
||||||
}
|
|
||||||
|
|
||||||
async fn shard_stage_update(&self, _ctx: Context, s: ShardStageUpdateEvent) {
|
|
||||||
println!("Shard stage update : {:?}",s );
|
|
||||||
}
|
|
||||||
|
|
||||||
async fn ready(&self, ctx: Context, ready: Ready) {
|
async fn ready(&self, ctx: Context, ready: Ready) {
|
||||||
println!("{} connected to discord", ready.user.name);
|
println!("{} connected to discord", ready.user.name);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue