Commit Graph

219 Commits

Author SHA1 Message Date
b6b8d91592 weather: switch to OpenWeatherMap
public yahoo api was shut down on Jan 3, 2019
2021-05-20 14:00:35 +00:00
586bdceca9 Revert "Update README.md"
This reverts commit d792452d22.

Project is no longer abandoned ^.^
2021-05-20 02:09:19 +00:00
9c3cd2f816 urlinfo: check content-type before downloading + handle timeouts
improve codestyle and formatting
2021-05-20 00:27:03 +00:00
e7b89e7fdb urlinfo: update blacklist 2021-05-20 00:25:43 +00:00
b8c3fe073b urban: fix multi-word terms 2021-05-15 14:26:56 +00:00
9a3fce367a config: add urlinfo plugin + local changes 2021-05-15 13:50:14 +00:00
c8870bab4e update requirements + add lxml 2021-05-15 01:59:50 +00:00
c4f66e5346 urlinfo: limit download size + check content type 2021-05-14 22:13:30 +00:00
233cfc9089 add urlinfo plugin 2021-05-14 19:20:19 +00:00
cf2fe25d68 Merge branch 'noxy-master-patch-23491' into 'master'
Update bot/useless.py

See merge request mrhanky/nxy!14
2021-05-12 18:42:28 +00:00
noxy
be2d9ab27f Update bot/useless.py 2021-05-12 18:41:54 +00:00
3960da27ed Merge branch 'noxy-master-patch-11090' into 'master'
hebamme command

See merge request mrhanky/nxy!13
2021-05-12 18:34:06 +00:00
noxy
c1be5ee2af hebamme command 2021-05-12 18:34:06 +00:00
452796556f tell: fix sending unique constraint violating message multiple times 2021-03-09 15:17:20 +00:00
31631e3e4d rape: fix fines color 2021-01-25 19:43:53 +00:00
7036bceeb0 mcmaniac: fix regex #2
schema: make mcmaniac items case-insensitive
2021-01-06 19:44:19 +00:00
51bf31e2a5 mcmaniac: fix regex 2020-12-19 15:20:30 +00:00
22f4cc8d32 Merge branch 'noxy-master-patch-30459' into 'master'
Aktualisieren bot/useless.py

See merge request mrhanky/nxy!12
2020-11-20 16:50:26 +00:00
noxy
ade97db922 useless: add vampir trigger 2020-11-20 16:50:26 +00:00
afbcf2e951 urban: use variable from previous commit in result formatting 2020-11-20 16:18:14 +00:00
fa18d1b3eb fix urban dictionary (ud) trigger 2020-11-20 16:14:43 +00:00
81d12c92ae systemd unit adjustments 2020-10-06 16:29:57 +00:00
b4f0d5644f db dump timer: change service type to simple
oneshot considers the service to be active after the main process exits.
This is not wanted here, removing the declaration makes the type default
to simple, which considers units to be active when the main process is
running.
2020-06-08 21:24:25 +00:00
92d98a1e6c utils: fix iso8601 parsing
youtube: change datetime format in output
2020-05-18 20:48:20 +00:00
98646f3226 minor bugfixes 2020-05-01 23:20:37 +00:00
2d41d0c0bb useless: add corona trigger 2020-05-01 23:19:31 +00:00
80cfa2f815 useless: fix syntax warning
storage: shorten code
2020-03-16 22:04:29 +00:00
e03f5d0a43 add auto reconnect for postgres
This only works on the second database interaction, since psycopg2 only notices that
the connection is gone, when a query is executed.

So in the common case reconnect works as follows:
- some bot method calls a cursor function like .execute(), .fetchone(), etc.
  - this raises an error if the connection is broken
  - if following code then requests a new cursor, this will also fail since psycopg2
    now knows that the connection is gone
  - the error is caught in storage.DBConn.cursor(), a new connection will be set up
    of which a new cursor is yielded
If the error happens in connection.commit() or .rollback() instead we can instantly
reconnect since these methods are wrapped.

So why not wrap the cursor methods as well?
Consider the following example:
A query is the last thing that was executed on a cursor.
The database connection is lost.
Now .fetchone() is called on the cursor.
We could wrap .fetchone() and reconnect, but we'd have to use a new cursor since
cursors are linked to connections. And on this new cursor .fetchone() wouldn't
make any sense, since we haven't executed a query on this cursor.
2020-03-16 21:51:32 +00:00
84396cad99 quotes: add global searching 2019-12-08 22:04:04 +00:00
db797b4fef quotes: add quote searching 2019-12-08 19:35:10 +00:00
81c22bf6a4 utils: remove unused import of pprint 2019-12-08 19:33:56 +00:00
8bec5301b8 update requirements 2019-12-04 16:17:08 +00:00
4a11ea497e add flash to REE regex 2019-09-19 19:24:06 +00:00
Flummi
9388a39291 lowfry deep fried 2019-07-16 13:47:19 +00:00
Flummi
c8cb1f0fa6 pls don't throw any errors. 2019-04-24 17:48:19 +00:00
32c106fc90
make quote nicks case insensitive 2019-03-31 18:32:44 +00:00
7255dd4735 fix debian/ubuntu/apt/dpkg regex
now doesn't match words like laptop, with 'apt' inside, anymore
2018-12-17 15:03:22 +00:00
3aa72566c1 Merge branch 'master' of https://gitfap.de/mrhanky/nxy 2018-12-10 16:05:47 +00:00
1dac1571e2 remove +R, add +B on connect
add .iframe command
2018-12-10 16:04:59 +00:00
984e288b4a fix database schema creation + dump restore commands in readme 2018-12-01 15:19:51 +00:00
c36569d33d
fix ree regex 2018-08-14 12:52:58 +02:00
6b1c3a4e8f
add a lot of useless and ascii commands 2018-08-14 01:07:57 +02:00
a678fa791d
fix venv executable name in readme
shorten nxy-db-dump.service
fix irc3 requirement (async/await became keywords with python3.7, so mrhanky's older version will no longer work)
2018-08-14 00:18:44 +02:00
1e13cb5a37 Set 'currency' to 'usd' if fallback has been used 2017-10-15 04:03:30 +02:00
4da84cb452 Add 'usd' fallback to coin data request 2017-10-15 04:00:31 +02:00
a08d5f07dc Add currency information to 'no data received' message 2017-10-15 03:56:19 +02:00
f02e90ecd8 Fix data request for coins 2017-10-15 03:51:12 +02:00
0c7697e33b Move __currency out of Coins class 2017-10-15 03:49:08 +02:00
3f6c840d86 Fix Coins.__currency call 2017-10-15 03:44:55 +02:00
a0575a4826 retab? maybe 2017-10-15 03:42:18 +02:00