So, I've been re-coding my bot, and have been working to add custom commands into the bot from the chat. This works, which is a good thing, however, the command !cmd pulls and reads the .ini file.

This is not a bad thing, as the whisper system works, but... It pulls each line individually.

Below is the code behind it:
Quote:
on *:TEXT:!cmd:#: {
if (%CADD.On. [ $+ [ $network ] ] [ $+ [ . ] ] [ $+ [ $chan ] ] != $null) {
var %command_file = rcdradio_commands.ini
var %k = $+($network,-,$chan)
var %x = $ini(%command_file,%k,0)
var %kk = ''

if (%x) {
.msg # .w $nick == Customized Command List for channel: $capital2($chan) $+ ..
while (%x) {
%kk = $ini(%command_file,%k,%x)
.msg # .w $nick = ! $+ %kk => $readini(%command_file,n,%k,%kk)
dec %x
}
}
.msg # .w $nick == End of Custom Command List
else {
msg $chan I'm sorry $capital($nick) $+ , there are no custom commands currently available.
}
}
}


And this is the output:
Quote:

== Customized Command List for channel: #Eggfriedcheese..
= !test3 => test
= !test2 => test
= !test => /me is testing the command add
== End of Custom Command List


I need this command to display everything as one long list, with separators, based on the worry that the Twitch Shadow Ban System kicks into effect.

If anyone has any ideas, be grateful to hear them!

Thanks
Eggy <3


Twitch Live-Streamer:
Synth Riders
Beat Saber
www.twitch.tv/eggfriedcheese