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
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)
await trigger_typing()
rename messages_
back to just messages
in artificialint.py
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}>'
Log id of admin who prisoned the user
/verifying reassign [user] [l/r]
I thought I removed this after I Paginated embeds but it's still happening and is very annoying.
title!
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.
if ["1.", "2.", "3."] in message:
message = regenerate_message()
Create a global which makes it so that verification isn't done automatically and has to be approved by a moderator
Allow the vetting interview to Paginate to display longer answers
Remake how errors are logged utilizing new logging module
Create new embeds which include the note ID and better formatting for the time.
/prison Leaves the user with all their roles
Bots should be DM'able no matter what, take advantage of this to create a ban appeals system
/sentence list maybe?
Simply produce a list of prisoners currently in the database
Use pagination and include the note IDs
also add note removal command
without this implemented, two people can farm infinite reaction counters
Create a main log type for logging
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.