CactusDev / CactusBot

An open source, community-written service-agnostic chat bot
MIT License
30 stars 6 forks source link

User and Arg repeating? #203

Closed misterjoker closed 7 years ago

misterjoker commented 7 years ago

Litterally exactly what I did.

misterjoker: !command add hug %USER% hugs %ARGS% cactusbot: Updated command !hug. misterjoker: !hug @Alfred_E_Newman cactusbot: misterjoker hugs @Alfred_E_Newman !hug @Alfred_E_Newman

2Cubed commented 7 years ago

Good find! We definitely need to fix this.

Innectic commented 7 years ago

I seem to be unable to reproduce this bug. If you still have issues with it, reopen this issue :)

http://i.imgur.com/3FexGjJ.png

2Cubed commented 7 years ago

I was able to reproduce this. (Bot was on f7aa7cc.)

image

2Cubed commented 7 years ago

Testing shows that .split() appends the entire component to the end if the input ends with a space! :open_mouth:

Working on a fix now.

2Cubed commented 7 years ago

Fixed in #222! :tada: