Skip to content

Instantly share code, notes, and snippets.

View Artemis21's full-sized avatar
🦔

Miriam Vellacott Artemis21

🦔
View GitHub Profile
@Artemis21
Artemis21 / writer_payload.py
Created September 18, 2022 12:43
Python aiohttp write directly to upload
from __future__ import annotations
import asyncio
import io
import aiohttp
import aiohttp.abc
class WriterPayload(aiohttp.Payload):
@Artemis21
Artemis21 / README.md
Last active September 13, 2020 09:44
Simple two way encryption protocol

Protocol

Creating an account

  1. The client requests a public key from the server.
  2. The client encrypts a JSON object containing the requested username and password using the server's public key.
  3. The server decrypts the object, and, if the username and password are allowed, creates the account.

Starting a session

@Artemis21
Artemis21 / lightning.md
Last active June 18, 2020 01:39
bot features
  • Voice utilities
    • mute all in channel
    • unmute all in channel
    • move all from the final channels in the category it's used in
    • move back above
  • Queues
    • Command to transfer the top user from queue to processing
    • One log channel for join queue channel logs
    • One log channel for join/leave non-queue, non-waiting channel logs
  • VIP roles which will be given priority
@Artemis21
Artemis21 / invite.css
Created June 12, 2020 16:19
Discord server invite widget
.discord-invite {
background-color: rgb(47, 49, 54);
border-radius: 4px;
box-sizing: border-box;
height: 110px;
padding: 16px;
width: 432px;
font-family: Whitney, Helvetica Neue, Helvetica, Arial, sans-serif;
font-size: 14px;
}
@Artemis21
Artemis21 / pwn60xbot.md
Last active June 30, 2020 16:18
bot features

Features

  • statistics for
    • messages sent
    • minutes in voice
    • most active channels
  • customisable mute/ban for
    • more than X user joins in a minute
    • more than Y user joins in a minute with similar names
    • name containing blacklisted/zalgo characters/words/phrases
  • demote admins (and undo actions) when they
@Artemis21
Artemis21 / messenger.py
Created June 6, 2020 14:53
Simple cross-channel discord posting
import discord
import logging
CHANNELS = (123, 456)
TOKEN = 'TOKEN_GOES_HERE'
logging.basicConfig(level=logging.INFO)

Keybase proof

I hereby claim:

  • I am artemis21 on github.
  • I am artemisdev (https://keybase.io/artemisdev) on keybase.
  • I have a public key ASAS69z181amQvcKnR6ctb1F-v0bWgJKqRDtOzZa4HPVPQo

To claim this, I am signing this object: