Closed kyroskoh closed 9 years ago
I have tested out the username's case sensitive problem. In Twitch IRC, it sets all usernames to the lowercase but however your program will die when someone input the username in case sensitive and/or invalid username which is not found.
Using username: "himekyros" as this scenario:
[Case Sensitive Username] :kyroskoh!kyroskoh@kyroskoh.tmi.twitch.tv PRIVMSG #loserfruit :!queue add
send: kyroskoh added to queue :kyroskoh!kyroskoh@kyroskoh.tmi.twitch.tv PRIVMSG #loserfruit :!queue new send: New group: kyroskoh :himekyros!himekyros@himekyros.tmi.twitch.tv PRIVMSG #loserfruit :!queue add send: himekyros added to queue :himekyros!himekyros@himekyros.tmi.twitch.tv PRIVMSG #loserfruit :!queue position send: himekyros: #1 of 1 :kyroskoh!kyroskoh@kyroskoh.tmi.twitch.tv PRIVMSG #loserfruit :!queue remove HimeKyros Traceback (most recent call last): File "QueueBot.py", line 433, in main() File "QueueBot.py", line 389, in main elif result[0] == 'R': TypeError: 'NoneType' object is unsubscriptable
[Invalid Username/Username's not found] :kyroskoh!kyroskoh@kyroskoh.tmi.twitch.tv PRIVMSG #loserfruit :!queue add
send: kyroskoh added to queue :kyroskoh!kyroskoh@kyroskoh.tmi.twitch.tv PRIVMSG #loserfruit :!queue new send: New group: kyroskoh :himekyros!himekyros@himekyros.tmi.twitch.tv PRIVMSG #loserfruit :!queue add send: himekyros added to queue :himekyros!himekyros@himekyros.tmi.twitch.tv PRIVMSG #loserfruit :!queue position send: himekyros: #1 of 1 :kyroskoh!kyroskoh@kyroskoh.tmi.twitch.tv PRIVMSG #loserfruit :!queue remove hime Traceback (most recent call last): File "QueueBot.py", line 433, in main() File "QueueBot.py", line 389, in main elif result[0] == 'R': TypeError: 'NoneType' object is unsubscriptable
[Correct Input] :kyroskoh!kyroskoh@kyroskoh.tmi.twitch.tv PRIVMSG #loserfruit :!queue add
send: kyroskoh added to queue :kyroskoh!kyroskoh@kyroskoh.tmi.twitch.tv PRIVMSG #loserfruit :!queue new send: New group: kyroskoh :himekyros!himekyros@himekyros.tmi.twitch.tv PRIVMSG #loserfruit :!queue add send: himekyros added to queue :himekyros!himekyros@himekyros.tmi.twitch.tv PRIVMSG #loserfruit :!queue position send: himekyros: #1 of 1 :kyroskoh!kyroskoh@kyroskoh.tmi.twitch.tv PRIVMSG #loserfruit :!queue remove himekyros send: himekyros removed from queue
I have tested out the username's case sensitive problem. In Twitch IRC, it sets all usernames to the lowercase but however your program will die when someone input the username in case sensitive and/or invalid username which is not found.
Using username: "himekyros" as this scenario:
[Case Sensitive Username] :kyroskoh!kyroskoh@kyroskoh.tmi.twitch.tv PRIVMSG #loserfruit :!queue add
[Invalid Username/Username's not found] :kyroskoh!kyroskoh@kyroskoh.tmi.twitch.tv PRIVMSG #loserfruit :!queue add
[Correct Input] :kyroskoh!kyroskoh@kyroskoh.tmi.twitch.tv PRIVMSG #loserfruit :!queue add