rikai / Showbot

🤖 An omnipresent multi-platform bot who's goal in life is become Skynet 🤖
MIT License
40 stars 18 forks source link

Convertions and wtf interface #3

Closed maandree closed 11 years ago

maandree commented 11 years ago

I do not know Ruby and I cannot manage to install this package, so I implemented the commands I would like as a standalone program in Python.

!oz, !lb (and !lbs), !inch, !ft, !yard, !mile, !length and !°F offers converts from that their names implies to a unit in the metric system that is must corresponding to the unit at the from-side of the convertion. !length converts a length of a person expressed in feets and inches to centimeters.

!am and !pm converts time optionally with a date to from US/Pacific to UTC. !am and !pm only excepts 12-hour clocks and !am and !pm is used for specifying that the time is before midday and after midday respectively. If no date is specified 24:00 is prefered over 00:00 in the output, which is in 24-hours.

The commands uses American formats as input, however comma is not used for group of 3 separation, but rather as a decminal put just as a dot. The output is formated with comma as decimal point, minus (not hyphen) for negative values, blanks space for group separation. Time is formated HH:MM and HH:MM:SS and dates are formatted yyyy-(mm)mmm-dd (so that cannot be misinterpreted, the month is printed both numerically and with three letters.)

!wtf uses the command wtf (requires the package wtf) and is used just like wtf (but with a bang) and translates abbreviations to words that you can understand.

rikai commented 11 years ago

I'm not sure exactly what you expect me to do with this... This is python code, JBot is ruby. Also most of these commands are frivolous...

maandree commented 11 years ago

I though those commands could be useful for a non-American audience, and !wtf is very useful if you are not good at abbrevisations. Basically it is do you do not have to open a webbrowers tab and ask a search engine or go to another terminal and use wtf.

I was unable to get it the program running and I do not know Ruby, so I offered them written in another language if so you can rewrite then in Ruby to the program if you want to, the logic is provided for you, just not in Ruby.

rikai commented 11 years ago

I appreciate the effort, but it's really out of the scope of whats needed in the channel. The channel is high traffic and meant for communication with other viewers and the hosts and is an integral part of some shows.

I try to keep the command output and commands to a minimum to try and keep the bot directly useful to improving the shows while being as unintrusive as possible. There are a few exceptions to this, but in this case i don't think that it provides significantly new functionality to a point where it's worth the tradeoff. Most people talking in the chat have a browser open anyway to either talk in the chatroom or watch the stream, so opening a new tab isn't a big issue for them.

Thanks for the attempt though and i'm sorry if i seemed short with my previous reply. :)

maandree commented 11 years ago

I understand if you do not want to the channel to be polluted (although I do not think these additions would,) especially if you do not think openning a new tab so to interrupting for most listeners.