Commit Graph

54 Commits

Author SHA1 Message Date
Mike Shultz b52d67076a fail gracefully when trying to delete /price command resposne messages 2020-05-12 13:03:20 -06:00
Mike Shultz 0df85d831e don't compare int to str and expect it to equal... 2020-05-11 16:13:32 -06:00
Mike Shultz 26414ef39a MessageHandler filters are positive, not negative. Switch to excluding user IDs by configuration 2020-05-11 14:09:05 -06:00
Mike Shultz d82ef211cf filter out messages from 777000 (Telegram Service Messages) 2020-05-11 13:50:04 -06:00
Mike Shultz b0a8bd01b2 adds tracebacks, only sends audit message if notify_chat is configured, refactors logger to handle udpates without messages 2020-05-11 13:10:55 -06:00
Mike Shultz dd0704844d adds BTC price change 2020-05-05 12:31:32 -06:00
Mike Shultz 88aeaf222e also delete our own last message if it was a price message 2020-05-04 18:05:26 -06:00
Mike Shultz 54fa3bcc4a delete command message for /price 2020-05-04 17:29:47 -06:00
Mike Shultz e6e2635ce9 adds btc price to bot 2020-03-09 12:43:36 -06:00
Mike Shultz 10c6d270bc more decimals on the price! 2020-03-06 19:18:43 -07:00
Mike Shultz 5c593255a7 fixes percent_change formatting 2020-03-06 16:27:33 -07:00
Mike Shultz 608b576054 adds support for commands, including the /price command 2020-03-06 16:02:21 -07:00
Mike Shultz fd2f50135b allow gifs(telegram Documents with mime_type of video/mp4) 2020-03-05 13:59:48 -07:00
Josh Fraser 9bc388a036
Merge pull request #21 from OriginProtocol/wanderingstan-patch-1
Fix disabling of `DEBUG` and `ADMIN_EXEMPT`
2020-01-28 09:39:12 -08:00
Josh Fraser d6bdb9655a add basic sentiment analysis 2020-01-27 20:26:26 -08:00
Stan James 6fd5bd1020
Fix disabling of `DEBUG` and `ADMIN_EXEMPT`
As written (by unknown idiot), there was no way to actually set `DEBUG` and `ADMIN_EXEMPT` env vars in a way that disabled them (as claimed by docs), as their value was converted to uppercase and then tested for a lower case `false`. Fixed to forcing to _lowercase_ with `.lower()`.
2020-01-27 20:14:20 -08:00
Josh Fraser 0e94b860e4 translate telegram messages 2020-01-27 18:24:25 -08:00
Josh Fraser b1a57bb917 log chat IDs 2020-01-24 17:51:34 -08:00
Stan James 400f51b381 Facepalm. Backwards logic for detecting admins.
🤦‍♀️
2018-10-22 15:35:45 -06:00
Stan James 92a8426261 Fix bug when user has no first or last name
Fixing: https://github.com/OriginProtocol/telegram-moderator/issues/15

Using `.format()` to handle `None` instead of the conditional check.
2018-10-19 18:30:28 +02:00
Stan James a398742b96 Fixed checking of attachments.
Plus cleanup of old memorize util
2018-10-19 13:05:17 +02:00
Stan James 34ba0c4d04 Hide messages with attachements 2018-10-19 02:30:28 +02:00
Stan James e1a29f06a9 Changes for mainnet.
Hide forwarded messages.
2018-10-16 17:54:47 +02:00
Stan James 68aa8b85b8 Move notification chat to end of function
...So if notification channel is not set up right, it doesn't stop blocking from happening.
2018-06-28 11:54:17 -06:00
Stan James 7874dbfbfe syntax fix 2018-06-28 11:23:34 -06:00
Stan James b2460d8e3a better handling of debug setting 2018-06-28 11:22:23 -06:00
Stan James a0e3922bed Added better logging output. 2018-06-28 10:45:17 -06:00
Stan James 2abf64461d fix 2018-02-22 16:48:59 -08:00
Stan James e6d001eac2 Fix problem with adding users.
Added comments too.
2018-02-22 16:36:09 -08:00
Stan James b9b1663db3 Added check of chat_id. Removed unusable notifications to users
Some comment cleanup
2018-02-22 16:05:41 -08:00
Stan James 352b312afb Disable checks for admins 2018-02-22 15:38:02 -08:00
Stan James 0dc4a82c4c PM offending user and selected users on moderation action. 2018-02-10 22:24:36 -07:00
Stan James e812f33d9e If banned, don't bother with message check 2018-02-10 08:55:10 -07:00
Stan James be39359262 Fixed parens 2018-02-09 18:24:09 -07:00
Stan James ca7826d88e Ban and hide now getting logged in db 2018-02-09 18:13:09 -07:00
Stan James 1430126c44 regex verbose, so we can have comments 2018-02-06 15:10:49 -07:00
Stan James cb3059aad4 Merge branch 'develop' of github.com:OriginProtocol/origin-telegram-logger-bot into develop 2018-02-06 11:30:11 -07:00
Stan James 34f6977814 Delete any message worthy of a ban. 2018-02-06 11:29:46 -07:00
Stan James 69e5e1b208 Fixed call to add_usesr to be class-aware 2018-02-05 20:11:17 -07:00
Stan James 71067ed856
comment wasn't accurate 2018-02-05 16:19:44 -07:00
Stan James 9409b4bfbe Kick enabled. 2018-02-02 12:06:44 -07:00
Stan James 11fe6cf312 Added chat bag for debug 2018-02-01 21:29:58 -07:00
Stan James a74a3fd5c2 Syntax error 2018-02-01 21:10:09 -07:00
Stan James a698700709 Added Unidecode to reqs 2018-02-01 21:02:19 -07:00
Stan James 8361577f9b working as a class 2018-02-01 20:11:15 -07:00
Stan James 20a70ff55f tried putting in a class 2018-02-01 19:35:56 -07:00
Stan James 0079ae2aec Ignores accents on characters now 2018-02-01 16:04:18 -07:00
Stan James cf81b03e8c Basic matching and banning working 2018-02-01 14:54:27 -07:00
Stan James b22703e8ad Moved database uri to env var
Was is config file.
2018-01-30 16:23:53 -07:00
Stan James 9153ba75b6 formatting 2018-01-30 16:01:31 -07:00