Compare commits
3 commits
e01cfe472e
...
313b6ecfa9
Author | SHA1 | Date | |
---|---|---|---|
313b6ecfa9 | |||
3bfe2c3776 | |||
94ea145535 |
1 changed files with 16 additions and 17 deletions
|
@ -1,11 +1,10 @@
|
||||||
//! A module about editing and messing around with user text
|
//! A module about editing and messing around with user text
|
||||||
//!
|
//!
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::os::windows::thread;
|
|
||||||
use std::string;
|
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use rand::{thread_rng, Rng};
|
use rand::{thread_rng, Rng};
|
||||||
use rand::seq::SliceRandom;
|
use rand::seq::SliceRandom;
|
||||||
|
use twitch_irc::message::ReplyToMessage;
|
||||||
|
|
||||||
use crate::core::bot_actions::{actions_util, ExecBodyParams};
|
use crate::core::bot_actions::{actions_util, ExecBodyParams};
|
||||||
use crate::core::botinstance::Channel;
|
use crate::core::botinstance::Channel;
|
||||||
|
@ -111,8 +110,8 @@ pub async fn init(mgr: Arc<ModulesManager>) {
|
||||||
botlock
|
botlock
|
||||||
.botmgrs
|
.botmgrs
|
||||||
.chat
|
.chat
|
||||||
.say_in_reply_to(
|
.say_in_reply(
|
||||||
¶ms.msg,
|
Channel(params.clone().msg.channel_login().to_string()),
|
||||||
botreply,
|
botreply,
|
||||||
params.clone()
|
params.clone()
|
||||||
).await;
|
).await;
|
||||||
|
@ -133,8 +132,8 @@ pub async fn init(mgr: Arc<ModulesManager>) {
|
||||||
botlock
|
botlock
|
||||||
.botmgrs
|
.botmgrs
|
||||||
.chat
|
.chat
|
||||||
.say_in_reply_to(
|
.say_in_reply(
|
||||||
¶ms.msg,
|
Channel(params.clone().msg.channel_login().to_string()),
|
||||||
shuffle_word,
|
shuffle_word,
|
||||||
params.clone()
|
params.clone()
|
||||||
).await;
|
).await;
|
||||||
|
@ -175,8 +174,8 @@ pub async fn init(mgr: Arc<ModulesManager>) {
|
||||||
botlock
|
botlock
|
||||||
.botmgrs
|
.botmgrs
|
||||||
.chat
|
.chat
|
||||||
.say_in_reply_to(
|
.say_in_reply(
|
||||||
¶ms.msg,
|
Channel(params.clone().msg.channel_login().to_string()),
|
||||||
bot_reply,
|
bot_reply,
|
||||||
params.clone()
|
params.clone()
|
||||||
).await;
|
).await;
|
||||||
|
@ -193,8 +192,8 @@ pub async fn init(mgr: Arc<ModulesManager>) {
|
||||||
botlock
|
botlock
|
||||||
.botmgrs
|
.botmgrs
|
||||||
.chat
|
.chat
|
||||||
.say_in_reply_to(
|
.say_in_reply(
|
||||||
¶ms.msg,
|
Channel(params.clone().msg.channel_login().to_string()),
|
||||||
String::from("Forsen!"),
|
String::from("Forsen!"),
|
||||||
params.clone()
|
params.clone()
|
||||||
).await;
|
).await;
|
||||||
|
@ -226,8 +225,8 @@ pub async fn init(mgr: Arc<ModulesManager>) {
|
||||||
botlock
|
botlock
|
||||||
.botmgrs
|
.botmgrs
|
||||||
.chat
|
.chat
|
||||||
.say_in_reply_to(
|
.say_in_reply(
|
||||||
¶ms.msg,
|
Channel(params.clone().msg.channel_login().to_string()),
|
||||||
bot_reply.clone(),
|
bot_reply.clone(),
|
||||||
params.clone()
|
params.clone()
|
||||||
).await;
|
).await;
|
||||||
|
|
Loading…
Reference in a new issue