Created
March 23, 2020 14:46
-
-
Save BetterProgramming/90986ff7195244d955f3cf80798f48bd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// src/main.rs | |
use serenity::{ | |
prelude::*, | |
model::prelude::*, | |
Client, | |
}; | |
struct Handler; | |
impl EventHandler for Handler { | |
fn message(&self, context: Context, msg: Message) { | |
unimplemented!(); | |
} | |
} | |
fn main() { | |
let mut client = Client::new("<token>", Handler).expect("Couldn't create the new client!"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment