https://www.facebook.com/NhaThuocAnKhangcom/
https://www.tiktok.com/@nhathuocankhang
https://www.youtube.com/channel/UCvcOPForsFkUN8pci5uyJLg
https://www.linkedin.com/in/nhathuocankhang/
https://www.pinterest.com/nhathuocankhangcom/
https://www.tumblr.com/nhathuocankhang
https://twitter.com/nhathuocankhang
https://www.twitch.tv/nhathuocankhang/
https://www.flickr.com/people/196834477@N02/
https://soundcloud.com/nhathuocankhang
https://github.com/nhathuocankhang
https://dribbble.com/nhathuocankhang
https://vimeo.com/user190133910
https://sketchfab.com/nhathuocankhang
https://society6.com/nhathuocankhang
https://www.behance.net/nhathuocankhang
I got most of it sorted out, the vars call the right numbers when the battle is initiated, the winner is claimed, and I have the winners in a notepad with scores kept, I however didn't get the randomize messages up just yet, because I been reading up on mirc coding so I can figure out how to mmmm sort scores to call back in numerical order descending... So let's say you won and want to check your score you'd do like !score and it would read it back from a txt and tell you the score... I got it semi reading me back the stats just not filtered from highest score to lowest. So the actual !fight is working correctly, once I get the scores to actually save and read back right I'll start working on the multiple vars with diff winning messages. I'm way new to this so it'll be a little. Between streaming and sleep I have a limited time to play around till the weekend comes. : ) Initially what I'm trying to do is slowly write a mirc bot for my twitch stream so my viewers will eventually be able to play/fight and other things to collect points, then be able to spend them on like song requests, or game codes from a shop. So I already have points being given out just for loyalty or time being spent in the room. Eventually I plan to make it to where only followers can collect points and use the points to buy items as like a thank you. I'll keep you posted for sure.
As I understand to this code, I can say that if Bacon_Space writes !song on a channel, then the script will read a random line from the file CurrentSong.txt and give this message on that channel.
Pay attention that this script will work if Bacon_Space will write !song and if another writes, then will not work. If CurrentSong.txt has only one line of text in it, so this line will be sent to channel, otherwise will read a random line from it.
The Script will not work if Bacon_Space will add something to !song, i.e. !song cmd or !song play. In this case, you have to change the code to the following (of course if !song is the first word separated by space):
on *:TEXT:*:#: {
if ($nick == Bacon_Space) && ($1 == !song) {
msg $chan $Read(C:\Users\Bacon_Space\AppData\Roaming\AnkhHeart\AnkhBotR2\Twitch\Files\CurrentSong.txt)
}
}
You think this, or parts of this, will work with TwitchAlerts?
Technically, Editing it just a little bit, It should work.
I took the "alias CheckNewDonations" and tweaked it a little so it compares to the API page from TwitchAlerts.
Thats the only part i use and i have the following when i connect mIRC to the channel:
on 1:CONNECT:#channelname {
CheckNewDonations
}
(I'm not the best at working in mIRC.)
First off, I don't know if this is in the correct place but I would like to know if it is possible to put a blockage on numbers higher than 50 on the following mIRC script for my twitch bot.
Code:
on :text:!roll:#: {
if (($2 <= 0) || (!$3) || ($3 <= 0)) { msg $chan [ 4 $nick ] You have to roll something silly! | halt }
var %RollsDone 0 | var %Adds 0
while (%RollsDone < $2) {
inc %RollsDone | var %DiceScores $instok(%DiceScores,$rand(1,$3),%RollsDone,32)
}
while (%Adds < $2) {
inc %Adds | var %RollTime $gettok(%DiceScores,%Adds,32) | var %RollTotal $calc(%RollTotal + %RollTime)
}
/msg $chan [ 4 $nick ] < Dice:4 $2 > < Sides on Dice:4 $3 > < Rolls Scores:4 %DiceScores > < Total Score:4 %RollTotal >
}
So yea, any suggestions?
First and foremost, AMAZING script. Thank you very much for it! Small question; I'm working on this for Twitch and I'm trying to limit it to Mods and subscribers only requesting links. But, I want it to announce links posted in chat for everyone. What do I need to insert to make this work? Thank you!
Need help with my twitch bot !addcom command, i am having an issue with permissions and was wondering if someone could help me with the permissions and getting the correct permissions for the command so normal users cant use the command.
example: !addcom !tweet Here is my twitter -> (twitter link)
i want to set it so i can have my mods only do the command and not normal chat members, here is the code if someone can recode it and reply with the updated code so i can be able to do !addcom !tweet and have it set to mods only (my mods in my chat bot system are level 3)
//---------------------------------------
// code
//---------------------------------------
on 3:text:!addCom*:#: {
var %commandName = $2
var %message = $replace($3-, $, @)
if (%message == $null) {
msg $chan /me You must have a command message.
return
}
if ($comAlreadyExists(%commandName) == $false && $left(%commandName, 1) == !) {
var %msgViability = $msgAlreadyExists(%message)
if (%msgViability == $false) {
writeini -n %commandFile $calc(%commandID + 1) name %commandName
writeini -n %commandFile $calc(%commandID + 1) message %message
writeini -n %commandFile $calc(%commandID + 1) permission *
inc %commandID
msg $chan /me The command %commandName has been added.
}
else {
msg $chan /me There is already a command ( $+ %msgViability $+ ) with the same message as %commandName $+ .
}
}
elseif ($comAlreadyExists(%commandName) == $false && $left(%commandName, 1) != !) {
msg $chan /me To add a command, it must start with !
}
else {
msg $chan /me The command %commandName already exists. Type !editCom [name] [new message] to edit it.
}
}
please help me
I have a blackjack script that I very heavily modified from the blackjack script at http://hawkee.com/snippet/8528/ (there were numerous errors and terrible handling of aces). The script is designed to be used on a Twitch channel, but it will work in any mIRC channel with some tweaking. I hope it helps. You can find it on my GitHub at https://github.com/Blasman/mIRC-Twitch-Scripts
Hello, thank you for the nice script. However, for me it doesn't seem able to recognize moderators on my twitch channel. I was able to do !urlperm on after removing the "isop" check but that let everyone use it. I'd appreciate it if you could shed some light on this. http://imgur.com/FpzWxFQ