Commit graph

4109 commits

Author SHA1 Message Date
jesopo
d8ea5e9ce8 combine all 3 youtube API queries in to one (for speed!) 2019-11-18 10:52:01 +00:00
jesopo
0d4ddb709e from_pretty_time was moved to utils.datetime 2019-11-17 19:48:05 +00:00
jesopo
79a6fd6609 refactor lastfm.py 2019-11-15 17:00:38 +00:00
jesopo
90baf17d10 boldify track/artist in !np output 2019-11-15 16:34:28 +00:00
jesopo
177f029c07 add missing ">" in CHANGELOG.md 2019-11-15 15:06:04 +00:00
jesopo
dd58dbf99b update CHANGELOG.md 2019-11-15 15:05:12 +00:00
jesopo
982f3b4912 refactor formatting privmsg/notice, show symbols on notice 2019-11-15 15:00:46 +00:00
jesopo
5d55086847 move utils.consts.BITBOT_MAGIC to utils.decorators 2019-11-15 14:09:35 +00:00
jesopo
5d01db8514 move all datetime-related code from utils/__init__ to utils.datetime 2019-11-15 13:59:09 +00:00
jesopo
5e8cf06a45 dont expose has_magic/get_magic in utils/__init__.py, ref directly 2019-11-15 13:41:03 +00:00
jesopo
bfcf40edd7 split some stuff out of utils/__init__.py 2019-11-15 13:39:24 +00:00
jesopo
6a55b14afa only try to shlex when we know we've found a command hook 2019-11-15 13:26:11 +00:00
jesopo
64ab4ca1a1 we should be passing args in to _find_command_hook, not args_split 2019-11-15 12:37:43 +00:00
jesopo
e2eccb951e updated CHANGELOG.md 2019-11-15 12:36:23 +00:00
jesopo
27de12bcfe dont use "%s %s"%("thing", "%s") trick - messes up when "thing" has % 2019-11-15 12:29:00 +00:00
jesopo
2cb55306c3 show first-words datestamp on !words output 2019-11-15 12:13:16 +00:00
jesopo
35cdc5321f implement opt-in shlex for command args
closes #202
2019-11-15 11:33:52 +00:00
jesopo
718a026beb don't respond to !botlist automatically 2019-11-15 10:57:29 +00:00
jesopo
d0d6fc967b update CHANGELOG.md 2019-11-14 17:35:40 +00:00
jesopo
7628e6f7fc default target_user to None so the var always exists 2019-11-14 15:48:36 +00:00
jesopo
f188969666 add minimal/normal for "topic set at" lines 2019-11-14 14:32:36 +00:00
jesopo
c9cb8c8805 set info log rolling backup count to 1 (0 means "keep all backups") 2019-11-14 13:35:23 +00:00
jesopo
301e86190e move default log location to ~/.bitbot/logs/ 2019-11-14 13:31:12 +00:00
jesopo
2fb689494c allow channels to be excluded from print_activity.py 2019-11-14 13:25:41 +00:00
jesopo
a962fcf434 dont print full stacktrace when getting a url's title fails 2019-11-14 13:22:49 +00:00
jesopo
e17e439530 nickname doesn't exist in _on_chghost 2019-11-14 13:17:22 +00:00
jesopo
736c125b98 nickname doesn't exist in _on_part, should be user.nickname 2019-11-14 12:18:11 +00:00
jesopo
b96d8d2d80 typo, 'mode_str' -> 'modes_str' 2019-11-14 12:17:40 +00:00
jesopo
aef31879af update CHANGELOG.md 2019-11-14 12:16:15 +00:00
jesopo
cf5294a835 don't duplicate event["user"].nickname for prettified invite format 2019-11-14 11:59:50 +00:00
jesopo
c5870e3d36 typo, 'prettyb' -> 'pretty 2019-11-14 11:56:57 +00:00
jesopo
9af23c686d pretty will always be in event but it might be None 2019-11-14 11:55:59 +00:00
jesopo
9abc668c0a don't let RSS shortening failure CRITICAL the whole bot 2019-11-14 11:54:10 +00:00
jesopo
160fab8f4f separate formatted lines from pretty formatted lines 2019-11-14 11:48:51 +00:00
jesopo
8ccbeb54d7 Show more fediverse errors to the end user 2019-11-14 10:53:34 +00:00
jesopo
76212faed4 change formatted JOIN to have userhost in parens 2019-11-13 11:19:28 +00:00
jesopo
a1e9aabb84 add typehinting for foreground/background 2019-11-13 10:47:58 +00:00
jesopo
5d2dd9178f only set color_finished=True when is_background, otherwise next char sets it 2019-11-13 10:43:15 +00:00
jesopo
d06efdabed change formatted NOTICEs to be denoted by "-nick-" (PRIVMSG as "<nick>") 2019-11-11 18:02:15 +00:00
jesopo
46058c51c5 support !duckstats for users other than yourself 2019-11-11 17:21:40 +00:00
jesopo
3766262eab change git_webhooks hashes from 8 characters to 7 2019-11-11 13:38:09 +00:00
jesopo
7d1cdd2251 prepend user nickname to command error messages 2019-11-11 13:26:14 +00:00
jesopo
9fa128fcc9 colorize nicknames on more line formatting events 2019-11-11 13:07:41 +00:00
jesopo
8a8bd8a77e colorize nicks on JOIN formatting 2019-11-11 12:49:45 +00:00
jesopo
b7bfd414be hash_colorize code should first be looked up in HASH_COLORS 2019-11-11 12:48:37 +00:00
jesopo
727fb3427d .lower() strings when hash-colorizing them 2019-11-11 12:40:36 +00:00
jesopo
d43e96f7e7 add bot-wide option to colorize nicknames in formatted output 2019-11-11 12:20:27 +00:00
jesopo
ac30f8d4cc don't use hash() for hashed colorising as it's not stable through restarts 2019-11-11 12:13:46 +00:00
jesopo
2ad8623eb3 add utils.irc.hash_colorize() to color a string by the string's hash 2019-11-11 12:06:16 +00:00
jesopo
dc52200af8 handle .connect() failure in bitbotctl 2019-11-11 11:52:35 +00:00