Commit Graph

97 Commits

Author SHA1 Message Date
snyk-bot
8d427df5dc
fix: requirements.txt to reduce vulnerabilities
The following vulnerabilities are fixed by pinning transitive dependencies:
- https://snyk.io/vuln/SNYK-PYTHON-NLTK-1660190
2021-10-18 18:45:32 +00:00
Mike Shultz
4c7a6622d5
adds runtime.txt 2021-05-06 19:09:53 -06:00
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
0eb8e9bf94 documents CMC_API_KEY 2020-03-06 16:06:11 -07:00
Mike Shultz
608b576054 adds support for commands, including the /price command 2020-03-06 16:02:21 -07:00
Mike Shultz
45dcd4844c Merge branch 'master' of https://git.heroku.com/origin-telegram-bot 2020-03-05 14:30:29 -07:00
Mike Shultz
7a6e4a7a9a
Merge pull request #22 from OriginProtocol/mikeshultz/allow-gifs
Allow gifs in channel
2020-03-05 14:20:36 -07:00
Mike Shultz
0af4755e82
Merge pull request #23 from OriginProtocol/mikeshultz/dep-upgrade
Dependency upgrades
2020-03-05 14:20:17 -07:00
Mike Shultz
2bc9a393b1 upgrades SQLAlchemy and psycopg2 2020-03-05 14:03:40 -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
a2d419d29c remove debug 2020-02-24 18:13:27 -08:00
Josh Fraser
c922bed060 quick prototype 2020-02-24 18:09:16 -08:00
Josh Fraser
516599ce9e Merge branch 'master' of https://github.com/OriginProtocol/telegram-moderator 2020-02-24 18:06:29 -08:00
Josh Fraser
9bb0a85751 temporary debug 2020-02-24 18:04:26 -08: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
52dfb482a7 fix typos 2020-01-27 21:48:00 -08:00
Josh Fraser
3a12a90198 update readme to explain sentiment analysis 2020-01-27 21:46:54 -08:00
Josh Fraser
dc18b2a7a3 update readme to explain sentiment analysis 2020-01-27 21:44:51 -08:00
Josh Fraser
64de923982 add Numeric type to imports 2020-01-27 20:28:14 -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
79ec4c1abf add ipython 2020-01-27 20:12:04 -08:00
Josh Fraser
4e1e586123 setup textblob for sentiment analysis 2020-01-27 20:08:00 -08:00
Josh Fraser
82787cc428 update readme 2020-01-27 19:52:52 -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
5e6f9b4eba Merge branch 'master' of github.com:OriginProtocol/telegram-moderator 2018-10-22 15:36:25 -06:00
Stan James
400f51b381 Facepalm. Backwards logic for detecting admins.
🤦‍♀️
2018-10-22 15:35:45 -06:00
Stan James
c272b88809
Readme typo 2018-10-19 20:47:41 +02:00
Stan James
13e6ce7847
Clarify readme about env vars 2018-10-19 20:46:41 +02:00
Stan James
79678abd72
ENV vars to readme 2018-10-19 20:39:01 +02: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
a5a7f30c93
Merge pull request #19 from OriginProtocol/stan/mainnet
Stan/mainnet
2018-10-16 19:13:04 +03:00
Stan James
e1a29f06a9 Changes for mainnet.
Hide forwarded messages.
2018-10-16 17:54:47 +02:00
Stan James
ffe3790946 Merge branch 'master' of https://github.com/OriginProtocol/telegram-moderator 2018-10-03 06:18:41 -07:00
Josh Fraser
8b8018a93a
Merge pull request #13 from OriginProtocol/dev-page-link
Link to developer landing page from README
2018-07-01 17:00:14 -07:00
Micah Alcorn
c5c1ae5140
Link to developer landing page from README 2018-07-01 16:48:20 -07: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