applying the same but unfucked logic to keysmash bot as well

@mldkyt@soc.mldkyt.com

applying the same but unfucked logic to keysmash bot as well