bitbot-3.11-fork/modules
Dax fcbeaf3114 [Tweets] Fix tweet age calc for TZ!=UTC
dt is a naive datetime object, so its timezone is assumed to be the system timezone. However, the actual timezone from the API is UTC. Therefore, we need to set tzinfo before doing the calculation. See the note at https://docs.python.org/3/library/datetime.html#datetime.datetime.timestamp for more info.

Ideally this would be fixed in tweepy, but there's a report of this on forums from 7 years ago so let's just fix it in BitBot.

This bug found by an anonymous contributor. Thank you 😺!
2020-11-05 06:00:45 +00:00
..
dnsbl add torexit.dan.me.uk to dnsbls 2020-09-18 01:02:31 +00:00
fediverse give str(Exception) when webfinger fails 2020-03-08 18:45:15 +00:00
git_webhooks show PRs on check_run output where possible 2020-10-18 00:37:05 +00:00
scripts switch scripts module to no longer use set_prefix() 2019-11-25 10:53:16 +00:00
tweets [Tweets] Fix tweet age calc for TZ!=UTC 2020-11-05 06:00:45 +00:00
acronym.py remove parser from utils.http.Request, add Request.soup() 2019-11-26 11:35:56 +00:00
alias_variables.py add ${BNICK} (bot's own nick) and ${CTRIGGER} (command trigger) to aliases 2020-04-07 19:30:32 +01:00
autojoin.py rename channel_save.py to autojoin.py 2020-07-03 13:14:52 +01:00
badges.py add !badge show <name> 2020-02-26 21:02:10 +00:00
badwords.py use ban-mask export in badwords.py 2020-03-08 18:45:57 +00:00
ban_enforce.py Update ban_enforce.py 2020-10-04 19:24:45 -05:00
birthday.py show useful error message when failing to parse birthday setting 2019-12-02 18:01:31 +00:00
bitcoin.py utils.http.Response.data should always be bytes - add .decode and .soup 2019-11-26 13:42:01 +00:00
botlist.py don't respond to !botlist automatically 2019-11-15 10:57:29 +00:00
channel_log.py we need to manually flush log files 2020-02-24 17:21:35 +00:00
channel_op.py fix !cmute +time 2020-09-25 18:09:10 +00:00
check_certificate.py add check_certificate.py, to warn about expiring or not valid client certs 2019-09-26 16:03:23 +01:00
coins.py only do to_pretty_time as relative when requested 2020-02-24 10:18:55 +00:00
command_suggestions.py add server/channel config to disable command suggestions 2019-10-30 11:48:35 +00:00
cron_reminders.py add cron_reminders.py (admin-only for now) 2020-02-11 11:19:25 +00:00
define.py update define.py to use command spec (and not docstrings) 2020-02-15 00:13:43 +00:00
dice.py implement command spec modifiers, use for pattern, use pattern for dice.py 2020-02-15 23:31:55 +00:00
duckduckgo.py utils.http.Response.data should always be bytes - add .decode and .soup 2019-11-26 13:42:01 +00:00
ducks.py duck chance should be 5%, not 50% 2020-02-19 15:39:11 +00:00
echo.py add spec arg names to echo.py 2020-01-26 11:25:27 +00:00
eightball.py add !8 as alias of !8ball 2019-09-09 14:25:19 +01:00
eval_lua.py remove parser from utils.http.Request, add Request.soup() 2019-11-26 11:35:56 +00:00
eval_python.py force utf8 encoding on eval_python.py 2019-12-18 19:51:35 +00:00
factoids.py we don't have a target_desc when we can't find a factoid 2020-02-09 18:55:47 +00:00
github.py utils.http.Response.data should always be bytes - add .decode and .soup 2019-11-26 13:42:01 +00:00
google.py show !g snippet when available, title when not 2020-02-25 16:50:17 +00:00
greeting.py Refactor set/channelset/serverset/botset in to 'utils.Setting' objects 2019-06-28 23:16:05 +01:00
hash.py Show available hash algorithms when none is provided 2019-07-28 16:41:12 +01:00
healthcheck.py healthcheck: typo 2020-02-08 22:09:51 -05:00
highlight_spam.py remove debug print 2019-08-14 14:51:07 +01:00
hostmask_tracking.py !maskfind should work in-channel too 2020-01-11 22:30:43 +00:00
ids.py exports.get_one() -> exports.get() 2020-03-08 14:14:00 +00:00
imdb.py utils.http.Response.data should always be bytes - add .decode and .soup 2019-11-26 13:42:01 +00:00
imgur.py add cookies and .json() to utils.http.Response objects 2019-11-25 18:17:30 +00:00
in.py split utils.datetime out in to .parse and .format 2020-01-30 21:20:56 +00:00
inactive_channels.py sent messages should mark channels 'active' 2020-05-06 16:35:54 +01:00
info.py handle git being in a detached head state when getting current commit 2020-02-08 13:21:29 +00:00
ip_addresses.py update dnspython lib, use new .resolve 2020-09-14 13:52:54 +00:00
ircv3.py boldify hostname in !specsup 2020-02-08 19:05:44 +00:00
ircv3_botignore.py ircv3_botignore.py should use HIGH priority 2019-07-09 21:25:43 +01:00
ircv3_editmsg.py exports.get_one() -> exports.get() 2020-03-08 14:14:00 +00:00
ircv3_multiline.py remove src/utils/irc/protocol.py 2019-10-28 10:56:33 +00:00
ircv3_resume.py don't overwrite on_resume() in ircv3_resume 2019-12-10 11:09:03 +00:00
ircv3_typing.py +draft/typing has been ratified 2020-05-20 16:36:40 +01:00
isup.py put a permission restriction on !tcpup - it could be abused for port scanning 2019-10-18 15:18:46 +01:00
karma.py sort karma reversed and by abs() 2020-09-29 15:36:43 +00:00
kick-rejoin.py transient timers shouldn't use the event system 2019-10-08 13:49:55 +01:00
lastfm.py disable !np youtube urls by default 2020-05-07 22:23:04 +01:00
location.py utilise @utils.export for function exporting in more places 2020-02-19 17:29:10 +00:00
markov.py add markov-chance, 0 to 100 percent chance of randomly triggered markov chains 2020-02-20 18:51:20 +00:00
message_filter.py !cfilter should be accessible by channel admins 2020-06-12 18:25:08 +01:00
messages.py only do to_pretty_time as relative when requested 2020-02-24 10:18:55 +00:00
mumble.py don't use dt.microseconds - only covers within the current second 2019-12-13 06:37:57 +00:00
nickserv.py use utils.SensitiveSetting in nickserv.py 2019-09-12 12:17:52 +01:00
nr.py remove all eagle stuff from nr.py 2019-11-26 13:37:30 +00:00
onionoo.py utils.http.Response.data should always be bytes - add .decode and .soup 2019-11-26 13:42:01 +00:00
ops.py add help and channel_only kwargs to !ops 2019-07-09 21:24:35 +01:00
ping.py show target user in !ping response 2020-01-30 11:54:24 +00:00
pronouns.py Refactor set/channelset/serverset/botset in to 'utils.Setting' objects 2019-06-28 23:16:05 +01:00
quotes.py show what quote was deleted, do partial match, fix qdel for last 2020-06-10 22:53:00 +01:00
rainbow.py update rainbow.py to use command spec 2020-01-30 11:54:40 +00:00
random_number.py Add depends-on hashflags to relevant modules 2019-05-25 21:40:06 +01:00
relay.py change relay.py to use command specs 2020-02-27 18:06:06 +00:00
rest_api.py utilise @utils.export for function exporting in more places 2020-02-19 17:29:10 +00:00
rot13.py Add depends-on hashflags to relevant modules 2019-05-25 21:40:06 +01:00
rss.py fix rss bindhost implementation 2020-04-09 18:26:54 +01:00
rust.py add cookies and .json() to utils.http.Response objects 2019-11-25 18:17:30 +00:00
sed.py support & in utils.parse.sed, change sed.py to use utils.parse.sed 2020-02-09 16:32:15 +00:00
seen.py args_split[0] -> user.nickname (seen.py) 2020-03-08 21:42:31 +00:00
shorturl.py shorturl-any shouldn't need a server 2020-10-17 16:46:37 +00:00
soundcloud.py utils.http.Response.data should always be bytes - add .decode and .soup 2019-11-26 13:42:01 +00:00
spotify.py utils.http.Response.data should always be bytes - add .decode and .soup 2019-11-26 13:42:01 +00:00
stats.py only do to_pretty_time as relative when requested 2020-02-24 10:18:55 +00:00
tell.py split utils.datetime out in to .parse and .format 2020-01-30 21:20:56 +00:00
thesaurus.py utils.http.Response.data should always be bytes - add .decode and .soup 2019-11-26 13:42:01 +00:00
title.py strip ':' and ',' from titles too 2020-06-26 13:43:14 +01:00
todo.py rewrite todo.py 2020-02-15 00:47:40 +00:00
trakt.py utils.http.Response.data should always be bytes - add .decode and .soup 2019-11-26 13:42:01 +00:00
translate.py Update translate.py 2020-07-12 00:30:10 +01:00
urbandictionary.py utils.http.Response.data should always be bytes - add .decode and .soup 2019-11-26 13:42:01 +00:00
user_time.py exports.get_one() -> exports.get() 2020-03-08 14:14:00 +00:00
vote.py update other modules to use categorised require_access 2020-02-07 00:11:28 +00:00
weather.py exports.get_one() -> exports.get() 2020-03-08 14:14:00 +00:00
wikipedia.py update wikipedia.py to use command specs 2020-01-29 17:23:38 +00:00
wolframalpha.py switch to using the full wolfram alpha API 2019-12-11 11:18:36 +00:00
words.py again, there may be more than one (nick,count) 2020-05-12 01:20:47 +01:00
yourls.py don't skip already "short" urls in yourls.py - can't predict output length 2020-03-09 00:07:30 +00:00
youtube.py log youtube API usage 2020-05-07 22:40:44 +01:00