This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# daemonize.ps1 | |
# | |
# Daemonizes your Discord bot. | |
# | |
# Arguments: | |
# -Executable] | |
# Path to bot's executable. | |
# | |
# -Arguments | |
# Optional arguments for the bot. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## README | |
# | |
# Automatic PostgreSQL backup script | |
# Version: v1.0.5 | |
# Author: Emzi0767 | |
# Usage: | |
# ./backup_db.sh <database> <username> <password> <max_count> | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import discord | |
import argparse | |
class AvatarClient(discord.Client): | |
def __init__(self, token: str, filename: str, username: str): | |
super().__init__() | |
self._av_token = token | |
self._av_filename = filename |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Runtime.InteropServices; | |
using Discord; | |
using Discord.WebSocket; | |
namespace Emzi0767.GluedEval | |
{ | |
[UnmanagedFunctionPointer(CallingConvention.Cdecl)] | |
public delegate void SendMessageDelegate(ulong channel, string msg, IntPtr embed); |
NewerOlder