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
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
Josh Fraser
4f49ecc3ef
adding issue and pull request templates
2018-04-12 19:01:25 -07:00
Stan James
3b73710c3b
Sample env variables
2018-02-25 07:28:32 -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
640a075b4f
Merge branch 'master' into develop
2018-02-22 16:07:10 -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
73d6cf94ad
change safe id to list
2018-02-21 19:27:39 -08:00
Stan James
12b859a3a5
Added debug for safe users
2018-02-21 19:20:03 -08:00
Stan James
eaf9d33b8d
Merge branch 'develop' of github.com:OriginProtocol/origin-telegram-logger-bot into develop
2018-02-10 22:25:16 -07: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
9fabbc6e3b
Merge branch 'master' of github.com:OriginProtocol/origin-telegram-logger-bot
2018-02-10 08:41:06 -07:00
Stan James
1c98c71c4c
Updated readme
2018-02-10 08:38:25 -07:00
Stan James
e0b73cc123
Updated readme
2018-02-10 08:37:03 -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