chat.say_in_reply
This commit is contained in:
parent
6867cc7af8
commit
62b6399e69
2 changed files with 36 additions and 6 deletions
|
@ -418,6 +418,21 @@ impl Chat {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
pub async fn say_in_reply(
|
||||||
|
&self,
|
||||||
|
destination_channel : Channel ,
|
||||||
|
outmsg: String ,
|
||||||
|
params : ExecBodyParams)
|
||||||
|
{
|
||||||
|
|
||||||
|
self.send_botmsg(BotMsgType::SayInReplyTo(
|
||||||
|
destination_channel,
|
||||||
|
params.msg.message_id().to_string(),
|
||||||
|
outmsg) , params).await;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// pub async fn say_in_reply_to(&self, msg: &PrivmsgMessage, outmsg: String) {
|
// pub async fn say_in_reply_to(&self, msg: &PrivmsgMessage, outmsg: String) {
|
||||||
// #[async_recursion]
|
// #[async_recursion]
|
||||||
|
@ -490,6 +505,9 @@ impl Chat {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// pub async fn say(&self, channel_login: String, message: String) {
|
// pub async fn say(&self, channel_login: String, message: String) {
|
||||||
pub async fn say(&self, channel_login: String, message: String , params : ExecBodyParams) {
|
pub async fn say(&self, channel_login: String, message: String , params : ExecBodyParams) {
|
||||||
// more info https://docs.rs/twitch-irc/latest/twitch_irc/client/struct.TwitchIRCClient.html#method.say
|
// more info https://docs.rs/twitch-irc/latest/twitch_irc/client/struct.TwitchIRCClient.html#method.say
|
||||||
|
@ -497,6 +515,10 @@ impl Chat {
|
||||||
self.send_botmsg(BotMsgType::Say(channel_login.to_lowercase(), message), params).await;
|
self.send_botmsg(BotMsgType::Say(channel_login.to_lowercase(), message), params).await;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
async fn _me(&self, _: String, _: String) {
|
async fn _me(&self, _: String, _: String) {
|
||||||
// more info https://docs.rs/twitch-irc/latest/twitch_irc/client/struct.TwitchIRCClient.html#method.say
|
// more info https://docs.rs/twitch-irc/latest/twitch_irc/client/struct.TwitchIRCClient.html#method.say
|
||||||
|
|
||||||
|
|
|
@ -230,9 +230,8 @@ async fn babygirl(params : ExecBodyParams) {
|
||||||
botlock
|
botlock
|
||||||
.botmgrs
|
.botmgrs
|
||||||
.chat
|
.chat
|
||||||
.say_in_reply_to(
|
.say_in_reply(
|
||||||
Channel(params.clone().msg.channel_login().to_string()),
|
Channel(params.clone().msg.channel_login().to_string()),
|
||||||
params.clone().msg.message_id().to_string(),
|
|
||||||
String::from("16:13 notohh: cafdk"),
|
String::from("16:13 notohh: cafdk"),
|
||||||
params.clone()
|
params.clone()
|
||||||
).await;
|
).await;
|
||||||
|
@ -243,9 +242,8 @@ async fn babygirl(params : ExecBodyParams) {
|
||||||
botlock
|
botlock
|
||||||
.botmgrs
|
.botmgrs
|
||||||
.chat
|
.chat
|
||||||
.say_in_reply_to(
|
.say_in_reply(
|
||||||
Channel(params.clone().msg.channel_login().to_string()),
|
Channel(params.clone().msg.channel_login().to_string()),
|
||||||
params.clone().msg.message_id().to_string(),
|
|
||||||
String::from("16:13 notohh: have fun eating princess"),
|
String::from("16:13 notohh: have fun eating princess"),
|
||||||
params.clone()
|
params.clone()
|
||||||
).await;
|
).await;
|
||||||
|
@ -253,12 +251,22 @@ async fn babygirl(params : ExecBodyParams) {
|
||||||
|
|
||||||
sleep(Duration::from_secs_f64(2.0)).await;
|
sleep(Duration::from_secs_f64(2.0)).await;
|
||||||
|
|
||||||
|
// botlock
|
||||||
|
// .botmgrs
|
||||||
|
// .chat
|
||||||
|
// .say_in_reply_to(
|
||||||
|
// Channel(params.clone().msg.channel_login().to_string()),
|
||||||
|
// params.clone().msg.message_id().to_string(),
|
||||||
|
// String::from("16:13 notohh: baby girl"),
|
||||||
|
// params.clone()
|
||||||
|
// ).await;
|
||||||
|
|
||||||
|
|
||||||
botlock
|
botlock
|
||||||
.botmgrs
|
.botmgrs
|
||||||
.chat
|
.chat
|
||||||
.say_in_reply_to(
|
.say_in_reply(
|
||||||
Channel(params.clone().msg.channel_login().to_string()),
|
Channel(params.clone().msg.channel_login().to_string()),
|
||||||
params.clone().msg.message_id().to_string(),
|
|
||||||
String::from("16:13 notohh: baby girl"),
|
String::from("16:13 notohh: baby girl"),
|
||||||
params.clone()
|
params.clone()
|
||||||
).await;
|
).await;
|
||||||
|
|
Loading…
Reference in a new issue