cthulhuonice / stasi Goto Github PK
View Code? Open in Web Editor NEWplease god let this work
License: GNU Affero General Public License v3.0
please god let this work
License: GNU Affero General Public License v3.0
/case tip
command which prints a random tip about the justice system
Allow the vetting interview to Paginate to display longer answers
Dynamically describe what a motion does, so that it can be called when filling in /case vote
and motion in consideration pages on /case info
Have people who submit evidence describe it, to be used as alt-text
Remake how errors are logged utilizing new logging module
from datetime import datetime
import pytz
# Replace 'timezone_name' with the desired timezone name (e.g., 'America/New_York')
timezone_name = 'timezone_name'
tz = pytz.timezone(timezone_name)
# Get the current time in the specified timezone
now = datetime.now(tz)
print(now)
Have the user confirm the evidence they want to submit.
def discord_dynamic_timestamp(dt, format_char=None):
"""
Convert a datetime object to a Discord dynamic timestamp.
Format options:
- None: Default format
- 't': Short time format (e.g., '16:20')
- 'T': Long time format (e.g., '16:20:30')
- 'd': Short date format (e.g., '20/04/2023')
- 'D': Long date format (e.g., '20 April 2023')
- 'f': Short date and time format (e.g., '20 April 2023 16:20')
- 'F': Long date and time format (e.g., 'Thursday, 20 April 2023 16:20')
"""
if dt.tzinfo is None:
dt = dt.replace(tzinfo=timezone.utc)
unix_timestamp = int(dt.timestamp())
if format_char is None:
return f'<t:{unix_timestamp}>'
else:
return f'<t:{unix_timestamp}:{format_char}>'
Bots should be DM'able no matter what, take advantage of this to create a ban appeals system
/verifying reassign [user] [l/r]
if ["1.", "2.", "3."] in message:
message = regenerate_message()
Let the user pick one of any randomly generated codenames while signing up for jury service
/case admin addjuror
/case admin remjuror
/case admin jurors
/case admin strikemotion
/case admin strikecase
await trigger_typing()
Create new embeds which include the note ID and better formatting for the time.
Create a global which makes it so that verification isn't done automatically and has to be approved by a moderator
Instead of having the logic in a command, have a Case.Draft() function which a slash command calls, which then guides the user through the process of filing the motion, than calls New()
on itself.
I thought I removed this after I Paginated embeds but it's still happening and is very annoying.
rename messages_
back to just messages
in artificialint.py
without this implemented, two people can farm infinite reaction counters
An an option to override a verdict before the interview is done.
This will let the interview end naturally (unlike bypass) but overrides the resolution code.
class-level hint that describes what a motion does
class AdjustPenaltyMotion(Motion):
Hint = "Adjust the penalty of a guilty verdict"
If you are evidence owner, you can just edit a piece of evidence.
If you are not, this will file a motion.
Maybe make a motion editor cmui function to avoid repeating code in at least 2 spaces
Use pagination and include the note IDs
also add note removal command
Create different config entries for different log categories:
Mee6 currently performs the following functions which need to be replicated within the bot:
title!
Like #52 but for Motions
Log id of admin who prisoned the user
The bot should save your roles when you leave the server, and reassign them when you join the server. If you're joining for the first time it should issue the "unverified" role.
Create a main log type for logging
async function which takes a list of penalties and creates a menu for the user to edit, and then returns the edited list of penalties.
Used when filing cases or using penalty adjustment motions.
/prison Leaves the user with all their roles
/sentence list maybe?
Simply produce a list of prisoners currently in the database
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.