trwnh
65b68f886e
Fix: Change POST to GET for certain API calls
...
I'm not sure why Owncast responds to a POST when it should be a GET, but this is probably not reliable behaviour
2022-11-30 11:29:00 -06:00
trwnh
fe57550de2
Fix: Remove strict "is True" check
...
`is True` checks that the value points to the same memory. To check for truthiness, use `== True` or simply `if condition`
2022-11-30 11:00:30 -06:00
trwnh
420d954568
Refactor: reduce nesting
...
We can reduce cyclomatic complexity (how far we indented) by checking for a negative condition and exiting early, instead of checking for a positive condition and continuing
2022-11-30 10:45:52 -06:00
Lili (Tlapka)
af36ddff75
change error logger to error
2022-11-25 15:11:42 +01:00
Lili (Tlapka)
22b4ee68d9
add gunicorn logging, GUNICORN to config.py
2022-11-24 16:56:23 +01:00
Lili (Tlapka)
444601dab8
version 1.0.0a2: change prints to logger
...
errors are warning, debug is for spam.
2022-11-24 16:06:01 +01:00
Lili (Tlapka)
5e5e81114f
style fixes
2022-11-22 11:33:05 +01:00
Lili (Tlapka)
5d3a4c3825
remove unused imports
...
hopefully theyre unused lol
2022-11-22 11:23:21 +01:00
Lili (Tlapka)
6f96019257
Add a basic description of tlapbot to !help.
...
Change default to not list redeems, and instead redirect to dashboard
2022-11-09 15:14:10 +01:00
Lili (Tlapka)
e33ab1f74b
more text to explain redeems
2022-11-09 14:54:00 +01:00
Lili (Tlapka)
5ab2e0d8d2
wording update for better clarity
2022-11-09 14:40:27 +01:00
Lili (Tlapka)
f0b918aa2c
add tabs to dashboard
...
tab with recent redeems and counters
then tab with redeems info
recent redeems open by default
2022-11-09 14:35:45 +01:00
Lili (Tlapka)
73194a0fc8
add new functionality to config, info to redeems
2022-11-07 17:31:01 +01:00
Lili (Tlapka)
e4850ab89f
move help to own file, rewrite it
...
for speed and for better info
2022-11-07 17:30:40 +01:00
Lili (Tlapka)
ee1eb66567
remove CLI db stuff from owncast helpers
...
was moved to db.py
2022-11-07 17:30:20 +01:00
Lili (Tlapka)
72800a6311
add list of current redeems to dashboard
...
is currently ugly, needs to be made prettier
2022-11-07 17:30:00 +01:00
Lili (Tlapka)
7b9dbc805c
add new and moved CLI commands to init
2022-11-07 16:45:29 +01:00
Lili (Tlapka)
657854eb5d
move clear-queue to db, add refresh-counters to db
2022-11-07 16:42:45 +01:00
Lili (Tlapka)
2c3109901c
make app silently fail when config is missing
...
since default was already loaded
2022-11-07 16:29:02 +01:00
Lili (Tlapka)
1c295dde29
fix duplicate removal on name change for auth user
2022-11-07 12:56:11 +01:00
Lili (Tlapka)
41d9fc4657
fix duplicate name purging,
...
add name addition to account creation
2022-11-03 15:58:33 +01:00
Lili (Tlapka)
6ec8a31100
add duplicate name removal to webhook catcher
2022-10-25 19:00:43 +02:00
Lili (Tlapka)
95acd70b85
prepare remove duplicate usernames function
...
(NOT TESTED)
2022-10-25 18:58:04 +02:00
Lili (Tlapka)
75bc9f161d
fully fixed redeem clear
2022-10-25 18:37:59 +02:00
Lili (Tlapka)
932ac9ff71
fix counters not resetting hopefully
2022-10-25 18:34:48 +02:00
Lili (Tlapka)
a667f746f3
fix taking away points when no note with note rdm
2022-10-25 18:31:36 +02:00
Lili (Tlapka)
2cf2050dac
dashboard wrong points workaround
...
dashboard now shows the points of every user with same username
2022-10-20 16:10:28 +02:00
Lili (Tlapka)
f0077c56dc
fix default redeems
2022-10-18 15:39:04 +02:00
Lili (Tlapka)
a62c718aa1
add a default redeems file
2022-10-18 14:44:46 +02:00
Lili (Tlapka)
bf49aa16cd
make help send all redeems
...
(the help function needs a rewrite)
2022-10-18 14:40:16 +02:00
Lili (Tlapka)
f9ff27c055
bugfix
2022-10-18 14:10:52 +02:00
Lili (Tlapka)
6a4c8b759a
fix None type error
2022-10-18 14:09:35 +02:00
Lili (Tlapka)
c12bcd68c2
show user's points on dashboard
2022-10-18 14:04:15 +02:00
Lili (Tlapka)
d8230da013
more style fixes everywhere else
2022-10-17 18:47:30 +02:00
Lili (Tlapka)
06114022da
code style fixes
2022-10-17 18:37:49 +02:00
Lili (Tlapka)
f391a7bd12
create points table if not exists
2022-10-13 14:24:36 +02:00
Lili (Tlapka)
f916d46d55
change schema to drop counters and NOT drop points
2022-10-13 14:23:31 +02:00
Lili (Tlapka)
5c6b070a7a
redeems dashboard improvement
2022-10-13 14:09:12 +02:00
Lili (Tlapka)
796febb91f
dashboard fixes
2022-10-13 13:53:42 +02:00
Lili (Tlapka)
dda415f87a
init-db typo fixes
2022-10-13 13:29:38 +02:00
Lili (Tlapka)
3c5a09b2de
update dashboard + dashboard helpers
...
also untested
2022-10-12 15:48:57 +02:00
Lili (Tlapka)
5384076f64
another schema fix
2022-10-12 15:48:18 +02:00
Lili (Tlapka)
4a3927a196
schema fix
2022-10-12 15:48:03 +02:00
Lili (Tlapka)
ede1cca8da
code skeleton fixes
2022-10-12 15:35:36 +02:00
Lili (Tlapka)
099525f9ff
base customizable redeems code skeletons
...
UNTESTED but i think i got it all
2022-10-12 15:31:34 +02:00
Lili (Tlapka)
1faee35169
indent fixes + new helpers + updated helpers
2022-10-12 15:30:12 +02:00
Lili (Tlapka)
062e1c113e
prepare skeletons for configurable redeems
...
move redeem handling code to redeem handler
2022-10-10 15:14:57 +02:00
Lili (Tlapka)
9ce16bb35e
bugfix: only give points to unique users
...
no longer gives people extra points for having more tabs open
2022-09-30 12:01:33 +02:00
Lili (Tlapka)
87cdf9c4ea
remove unnecessary lines from style.css
...
i kept removing things that didn't make the dashboard different
2022-09-29 12:52:27 +02:00
Michcio
570c7c84be
Fix time formatting in redeems dashboard
2022-09-27 18:23:10 +02:00
Lili (Tlapka)
6431705934
remove unused line
2022-09-27 10:32:24 +02:00
Lili (Tlapka)
951dc38496
redeem dashboard now shows in local timezone
2022-09-26 16:51:44 +02:00
Lili (Tlapka)
1d6bd82ce0
fix db import for cmd argument
2022-09-26 16:51:22 +02:00
Lili (Tlapka)
8311e6f40e
remove insecure clear command from bot
...
CLI command replaces it safely
2022-09-26 11:11:31 +02:00
Lili (Tlapka)
8bbe273df4
reorganize app factory
2022-09-26 11:10:58 +02:00
Lili (Tlapka)
4adac38871
add clear-queue CLI command
2022-09-26 11:10:48 +02:00
Lili (Tlapka)
ed79404530
remove old/unnecessary checks
2022-09-26 10:50:37 +02:00
Lili (Tlapka)
26f7706b2d
fix point redeems that end with balance at 0
2022-09-24 21:20:44 +02:00
Lili (Tlapka)
ac0f5c4549
make db config work in instance dir when package
2022-09-23 11:49:32 +02:00
Lili (Tlapka)
2f54388814
change config file load to work when package
2022-09-23 11:15:06 +02:00
Lili (Tlapka)
2f4923ddc4
move setup and manifest to root folder
2022-09-23 10:13:50 +02:00
Lili (Tlapka)
a922e52f33
make project installable
2022-09-22 13:44:47 +02:00
Lili (Tlapka)
4c3d2cc734
improvement: no points giving when stream is off
2022-09-14 14:05:10 +02:00
Lili (Tlapka)
53b4419ed4
bugfix: dashboard no longer breaks w/ empty queue
2022-09-14 14:04:27 +02:00
Lili (Tlapka)
4fa7f2287b
fix name change query, add forced name refresh
2022-09-09 12:41:13 +02:00
Lili (Tlapka)
7725f1f795
dashboard update part 2
2022-09-09 12:35:46 +02:00
Lili (Tlapka)
8622ad0931
update dashboard to show time and username
...
time instead of datetime, username instead of user ID
2022-09-09 12:35:20 +02:00
Lili (Tlapka)
876d020a69
db clear and pretty redeem queue helpers added
2022-09-09 12:34:31 +02:00
Lili (Tlapka)
dd2122618d
add css stylesheet (grabbed from elixir project)
2022-09-08 13:17:58 +02:00
Lili (Tlapka)
20c2d2536e
beginning work on redeem dashboard
...
for now it's just a static site
2022-09-07 16:44:59 +02:00
Lili (Tlapka)
0bca3d65a8
add base support for display name changes
2022-09-06 18:20:44 +02:00
Lili (Tlapka)
4a0940b8ff
configurable points per X second part 2
2022-09-05 13:20:39 +02:00
Lili (Tlapka)
c4fc1de95c
configurable points per X seconds implementation
2022-09-05 13:20:20 +02:00
Lili (Tlapka)
aa7a53342f
preparation for configurable points
2022-08-30 15:32:17 +02:00
Lili (Tlapka)
d80ea74a29
add automatic point addition
2022-08-30 15:25:21 +02:00
Lili (Tlapka)
f16f6cc925
add drink
2022-08-24 15:55:55 +02:00
Lili (Tlapka)
c0f1d33818
add use_points
2022-08-24 15:55:46 +02:00
Lili (Tlapka)
c5f31946d3
moving code out into helper functions
2022-08-24 15:35:16 +02:00
Lili (Tlapka)
63b4c73cda
change filenames to snake_case as well
2022-08-24 13:47:55 +02:00
Lili (Tlapka)
23ebe015b9
change function names to snake_case
2022-08-24 13:45:13 +02:00
Lili (Tlapka)
2ab85bfb6d
move helper functions to own file
2022-08-24 13:39:40 +02:00
Lili (Tlapka)
ad692e5938
add owncast instance url to config
2022-08-22 16:58:10 +02:00
Lili (Tlapka)
ef88403ca4
add a working config file!
2022-08-22 16:43:56 +02:00
Lili (Tlapka)
fd28a7904a
respond to user in chat
2022-08-17 17:44:25 +02:00
Lili (Tlapka)
67fc364b8e
first prototype of point tracking. no point redeem
2022-08-17 16:33:40 +02:00
Lili (Tlapka)
de9294c754
early progress: untested so far
2022-06-08 14:22:58 +02:00