Logo
Explore Help
Register Sign In
elsanctum/tenquestionmarks
2
0
Fork 0
You've already forked tenquestionmarks
Code Issues 8 Pull Requests Releases Wiki Activity
tenquestionmarks/src/event/mod.rs

9 lines
199 B
Rust
Raw Normal View History

Flesh out plugins event handling, add example stdin plugin (event producer) and echo plugin (event consumer). Next step: fleshing out user/channel structs
2017-02-13 00:22:06 -06:00
use {Channel, User};
#[derive(Debug, Clone)]
begin fleshing out discord module. Implement sender/channel as struct for now, there might be a performance hit from copying so much data around but we can look at optimization later
2017-02-13 22:13:33 -06:00
pub enum Event {
Message { sender: User, channel: Option<Channel>, content: String },
Join { channel: Channel },
Quit { channel: Channel }
Flesh out plugins event handling, add example stdin plugin (event producer) and echo plugin (event consumer). Next step: fleshing out user/channel structs
2017-02-13 00:22:06 -06:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 102ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API