No description
Find a file
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
bin handle stdout being closed before we're finished 2020-02-24 18:17:03 +00:00
docs Merge branch 'master' into develop 2020-08-26 10:24:56 +00:00
migration rewrite words.py to track words per-day (in it's own table) 2020-02-06 16:43:13 +00:00
modules [Tweets] Fix tweet age calc for TZ!=UTC 2020-11-05 06:00:45 +00:00
src "unpacking a string is disallowed" 2020-08-26 10:35:10 +00:00
.gitignore gitignore .log files in any directory 2019-03-06 13:28:08 +00:00
.travis.yml remove nightly .travis.yml target 2020-03-13 14:04:06 +00:00
bitbotctl add a way to execute commands through bitbotd (use for master-password) 2019-11-21 10:39:26 +00:00
bitbotd respect ~ and {DATA} in external-modules config option 2020-07-11 16:24:42 +01:00
CHANGELOG.md v1.20.0 release 2020-08-26 10:24:07 +00:00
LICENSE Revert "added license info" 2019-05-26 09:19:32 -04:00
README.md make "Setup" a whole category of README.md 2019-12-06 17:09:55 +00:00
requirements.txt update dnspython lib, use new .resolve 2020-09-14 13:52:54 +00:00
setup.py add platform to setup.py (linux only) 2019-10-11 17:20:30 +01:00
VERSION v1.20.0 release 2020-08-26 10:24:07 +00:00

BitBot

Python3 event-driven modular IRC bot!

Setup

Requirements

$ pip3 install --user -r requirements.txt

Config

See docs/help/config.md.

Backups

If you wish to create backups of your BitBot instance (which you should, borgbackup is a good option), I advise backing up the entirety of ~/.bitbot - where BitBot by-default keeps config files, database files and rotated log files.

Github, Gitea and GitLab web hooks

I run BitBot as-a-service on most popular networks (willing to add more networks!) and offer github/gitea/gitlab webhook to IRC notifications for free to FOSS projects. Contact me for more information!

Contact/Support

Come say hi at #bitbot on freenode

License

This project is licensed under GNU General Public License v2.0 - see LICENSE for details.