This file contains hidden or 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 discord | |
import asyncio | |
import os | |
import time | |
import sys | |
import cloudscraper | |
from PIL import Image | |
from io import BytesIO | |
# get character encoding for printing to the terminal |
This file contains hidden or 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 EEUniverse.Library; | |
public static class CustomMessage | |
{ | |
/// <summary> | |
/// <b>(Client->Server)</b> Register a sound for the specified user. <br></br><br></br> <b>Message Args:</b> | |
/// <br> <b>int</b> Player Id </br> | |
/// <br> <b>int</b> Sound Id </br> | |
/// <br> <b>byte[]</b> Sound Data </br> | |
/// </summary> |
This file contains hidden or 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 re | |
import io | |
import discord | |
import requests | |
from datetime import datetime | |
from discord.ext import commands | |
bot = commands.Bot(command_prefix='bp!') | |
@bot.command(brief='A command to move a message into another channel.', description='A command to move a message into another channel. (bp!move <message id> <channel>)') |
This file contains hidden or 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.Linq; | |
using System.Net; | |
using System.Net.Http; | |
using System.Text; | |
using System.Collections; | |
using System.Net.Sockets; |
This file contains hidden or 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
namespace ProtocolMessage | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using System.Reflection; |
This file contains hidden or 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
diff --git a/mseoserv/commands/debug.cpp b/mseoserv/commands/debug.cpp | |
index 5bebb40..38026f9 100644 | |
--- a/mseoserv/commands/debug.cpp | |
+++ b/mseoserv/commands/debug.cpp | |
@@ -28,6 +28,66 @@ | |
namespace Commands | |
{ | |
+void GiveItem(const std::vector<std::string>& arguments, Character* from) | |
+{ |
This file contains hidden or 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
public static class StringExtensions | |
{ | |
public static string FormatIRC(this string input) | |
{ | |
return Regex.Replace(input, @"\[([^\]]*)\]\((.*?)\s*?\s*\)", (match) => { | |
var codes_portion = (match.Groups[1].Value).Split(' ', ','); | |
var color_check = new Func<string, ColorCode>((value) => Enum.TryParse(value, true, out ColorCode result) ? result : ColorCode.Invalid); | |
var control_check = new Func<string, ControlCode>((value) => Enum.TryParse(value, true, out ControlCode result) ? result : ControlCode.Invalid); |
This file contains hidden or 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
public static class StringExtensions | |
{ | |
public static string FormatIRC(this string input) | |
{ | |
return Regex.Replace(input, @"\[([^\]]*)\]\((.*?)\s*?\s*\)", (match) => { | |
var codes_portion = (match.Groups[1].Value).Split(' ', ','); | |
var color_check = new Func<string, ColorCode>((value) => Enum.TryParse(value, true, out ColorCode result) ? result : ColorCode.Invalid); | |
var control_check = new Func<string, ControlCode>((value) => Enum.TryParse(value, true, out ControlCode result) ? result : ControlCode.Invalid); |
This file contains hidden or 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
# place in ~/.bashrc | |
# replace ~/scripts/ with the directory where you placed the script | |
yt() { | |
(python /home/allie/scripts/youtube.py "$1" </dev/null &>/dev/null &) | |
} | |
############ | |
# youtube.py | |
############ | |
import sys |
This file contains hidden or 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
public static (int x, int y) DiamondToStaggered(int x, int y) => | |
(x: (((y - x) >> 1) * -1) * 2, y: x + y); |
NewerOlder