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); |
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
// requires Jint | |
// | |
// this can be used for video streams as well, with few modifications | |
public async Task<string> GetYtAudioUrl(string id) | |
{ | |
await Task.Yield(); | |
var utf8 = new UTF8Encoding(false); | |
var wc = new WebClient(); |
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.Collections.Generic; | |
using System.IO; | |
using System.Net; | |
using System.Net.Sockets; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
namespace eMZi.Gaming.Minecraft | |
{ |
NewerOlder