starting on time parser port from python

This commit is contained in:
jude committed 2020-08-30 00:16:33 +01:00
1 parent 1f410899b2
commit d097f36313
3 files changed
+134

No files matched your search

+12
View File
@@ -143,3 +143,15 @@ async fn prefix(ctx: &Context, msg: &Message, args: String) -> CommandResult {
Ok(())
}
#[command]
async fn pause(ctx: &Context, msg: &Message, args: String) -> CommandResult {
let pool = ctx.data.read().await
.get::<SQLPool>().cloned().expect("Could not get SQLPool from data");
let channel = ChannelData::from_channel(msg.channel(&ctx).await.unwrap(), pool.clone()).await.unwrap(),
channel.commit_changes(pool).await;
Ok(())
}