Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Starboard 2.0 #75

Merged
merged 33 commits into from
May 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
e29e8e3
handle starboard message deletions gracefully
andrewj-brown Mar 20, 2023
4c31838
timezones are fixed. admin-blacklist for starboard implemented.
andrewj-brown Mar 20, 2023
3c542ea
track reactions on OG and SB messages
andrewj-brown Mar 20, 2023
2f228b2
more bugfixes
andrewj-brown Mar 22, 2023
44f0722
switch to zoneinfo per PR #76
andrewj-brown Apr 7, 2023
f6df619
added a lot of comments. fixed a lot of things.
andrewj-brown Apr 7, 2023
31f2c70
Merge branch 'main' into starboard
andrewj-brown Apr 7, 2023
8da96f3
switch blacklist interactions to ephemeral replies
andrewj-brown Apr 7, 2023
e7685d2
beefed up the log entries for blacklisting/whitelisting
andrewj-brown Apr 7, 2023
f5980a9
real
andrewj-brown Apr 7, 2023
3270390
And now I'm fixing stuff
JamesDearlove Apr 7, 2023
51218e6
More quick fixes
JamesDearlove Apr 7, 2023
0001af5
recv is NOT NULL
andrewj-brown Apr 7, 2023
1993d01
fix cleanup command
andrewj-brown Apr 7, 2023
36b5c74
fix message deletion... again
andrewj-brown Apr 7, 2023
b7fbb1f
rewrite the majority of the querying code
andrewj-brown Apr 8, 2023
c0769d5
re-worked db support; black for style
andrewj-brown Apr 8, 2023
e436697
touchups pt1
andrewj-brown Apr 8, 2023
5ae3b7e
recreated cleanup. cleanup now also updates messages.
andrewj-brown Apr 8, 2023
95826f9
touchups pt2. now modlogs Very Bad Things
andrewj-brown Apr 8, 2023
7998452
black again
andrewj-brown Apr 10, 2023
baf9a8d
Merge branch 'main' into starboard
andrewj-brown Apr 13, 2023
b24ca23
fix error handling
andrewj-brown Apr 13, 2023
2def182
more commenting & error message stuff
andrewj-brown Apr 13, 2023
ee619c0
Merge remote-tracking branch 'origin/main' into starboard
andrewj-brown Apr 16, 2023
d5419a1
update perms & misc
andrewj-brown Apr 24, 2023
9ebcf4a
black again
andrewj-brown Apr 24, 2023
e99f722
resolving review comments
andrewj-brown Apr 25, 2023
6e05bd1
switch error handling to new globally-accessible exception
andrewj-brown Apr 25, 2023
e9ac1f7
Merge branch 'main' of github-personal:UQComputingSociety/uqcsbot-dis…
andrewj-brown May 7, 2023
758a85a
Merge branch 'main' of github-personal:UQComputingSociety/uqcsbot-dis…
andrewj-brown May 7, 2023
6209ef0
pokemon: gotta style them all
andrewj-brown May 7, 2023
c1e89d8
fortify the logging ever so slightly
andrewj-brown May 7, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ MC_RCON_PORT=
MC_RCON_PASSWORD=
SB_BASE_THRESHOLD=8
SB_BIG_THRESHOLD=24
<<<<<<< HEAD
SB_RATELIMIT=30
=======
>>>>>>> 6ce7152bcf2777976527b540ea014b9967d772fa
10 changes: 8 additions & 2 deletions uqcsbot/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,11 @@ class Reminders(Base):
class Starboard(Base):
__tablename__ = "starboard"

recv = Column("recv", BigInteger, primary_key=True, nullable=False)
sent = Column("sent", BigInteger, nullable=False, unique=True)
# composite key on recv, sent.

# recv == null implies deleted recv message.
# recv_location == null implies deleted recv channel. recv should also be null.
# sent == null implies blacklisted recv message.
recv = Column("recv", BigInteger, primary_key=True, nullable=True)
recv_location = Column("recv_location", BigInteger, nullable=True, unique=False)
sent = Column("sent", BigInteger, primary_key=True, nullable=True, unique=True)
Loading