paritybot

A fun IRC bot.
git clone https://git.sr.ht/~jbauer/paritybot
Log | Files | Refs | README | LICENSE

commit 795a5a3187649f05f2e1cc63ca79de5b9147fd2a
parent a70f990691a7566982d5000bfed8c9a0fb779070
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Sat, 21 Nov 2020 03:17:34 -0500

Force metric weather units

Diffstat:
Mbot.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bot.py b/bot.py @@ -103,7 +103,7 @@ def main(): elif ircmsg.find(":,tbweather") != -1: try: city = ircmsg.split(' ')[4] - url = "https://wttr.in/" + city + "?format=3" + url = "https://wttr.in/" + city + "?m&format=3" response = requests.get(url) message = "PRIVMSG " + get_channel(ircmsg) + " :" + response.text.strip('\n\r') + "\n" except Exception as e: