问题描述
我对编码很陌生,但有兴趣为我使用 tmi.js 并遇到问题的女巫制作我自己的 twitch 机器人。我无法识别任何表情!我不太确定,但我想做的是应该看起来像这样
var emotes = new Set()
axios
.get(
''//May be some sort of api witch allows to check if emote listed on channel
)
.then(response => emotes.add(/*emotes from Twitch/BTTV/FFZ*/+" "))
if (message.startsWith('!emotecheck')){
if(emotes.indexOf(message.toLowerCase())>=0){
client.say(channel,emotes + 'found in your messages')
//if message was "!emotes hi! Kappa how bttvNice are you? ZreknarF " it should response with "Kappa bttvNice ZreknarF found in your message"
}
}
我只能检查消息中是否有任何默认的抽搐表情,但无法识别表情的实际文本
if (message.startsWith('!emotecheck')&&tags.emotes!==null){
client.say(channel,"Your message has one of default twitch emotes")
}
emotes:{25: Array(1)}
25:(1) ['12-16']
0:'12-16'
length:1
__proto__:Array(0)
__proto__:Object
提前致谢!
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)