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
use std::env; | |
use std::fs; | |
use std::io::{self, Write, Read}; | |
use std::process::exit; | |
fn main() { | |
let args: Vec<String> = env::args().collect(); | |
let contents: String = match fs::read_to_string(&args[1]) { | |
Ok(x) => x, | |
Err(e) => { |
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
""" | |
The MIT License (MIT) | |
Copyright (c) 2020 XuaTheGrate | |
Permission is hereby granted, free of charge, to any person obtaining a | |
copy of this software and associated documentation files (the "Software"), | |
to deal in the Software without restriction, including without limitation | |
the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
and/or sell copies of the Software, and to permit persons to whom the |
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
NTM3NzcwODQxNzgyNDg1MDAy.XEj0Hw.aTiNIF8wnbSMP_e9DHvcihu6k3E |
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
(?:\U0001f004|\U0001f0cf|\U0001f170|\U0001f171|\U0001f17e|\U0001f17f|\U0001f18e|\U0001f191|\U0001f192|\U0001f193|\U0001f194|\U0001f195|\U0001f196|\U0001f197|\U0001f198|\U0001f199|\U0001f19a|\U0001f1e6\U0001f1e8|\U0001f1e6\U0001f1e9|\U0001f1e6\U0001f1ea|\U0001f1e6\U0001f1eb|\U0001f1e6\U0001f1ec|\U0001f1e6\U0001f1ee|\U0001f1e6\U0001f1f1|\U0001f1e6\U0001f1f2|\U0001f1e6\U0001f1f4|\U0001f1e6\U0001f1f6|\U0001f1e6\U0001f1f7|\U0001f1e6\U0001f1f8|\U0001f1e6\U0001f1f9|\U0001f1e6\U0001f1fa|\U0001f1e6\U0001f1fc|\U0001f1e6\U0001f1fd|\U0001f1e6\U0001f1ff|\U0001f1e6|\U0001f1e7\U0001f1e6|\U0001f1e7\U0001f1e7|\U0001f1e7\U0001f1e9|\U0001f1e7\U0001f1ea|\U0001f1e7\U0001f1eb|\U0001f1e7\U0001f1ec|\U0001f1e7\U0001f1ed|\U0001f1e7\U0001f1ee|\U0001f1e7\U0001f1ef|\U0001f1e7\U0001f1f1|\U0001f1e7\U0001f1f2|\U0001f1e7\U0001f1f3|\U0001f1e7\U0001f1f4|\U0001f1e7\U0001f1f6|\U0001f1e7\U0001f1f7|\U0001f1e7\U0001f1f8|\U0001f1e7\U0001f1f9|\U0001f1e7\U0001f1fb|\U0001f1e7\U0001f1fc|\U0001f1e7\U0001f1fe|\U0001f1e7\U0001f1ff|\U0001f1e7|\U0001f1e8\U00 |
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
(lambda sqlite3, asyncio, token, commands, regex, bot: [ | |
globals().update(set_var=lambda k, v: globals().__setitem__(k, v)), | |
set_var("_import", lambda module: set_var(module, __import__(module))), _import("config"), _import("discord"), | |
_import("random"), _import("math"), _import("re"), _import("logging"), logging.basicConfig(level=logging.INFO), | |
bot.load_extension("jishaku"), bot.command(name="hello")(asyncio.coroutine(lambda ctx: ctx.send("hello world"))), | |
set_var("mention", bot.command(name="mention")(asyncio.coroutine(lambda ctx, user: ()))), | |
set_var("temp_command", lambda ctx, user: ctx.send(user.mention)), | |
setattr(temp_command, "__annotations__", {"user": discord.Member}), | |
setattr(temp_command, "_doc__", "mentions someone"), setattr(mention, "callback", temp_command), mention.error( | |
asyncio.coroutine(lambda ctx, error: ctx.send("error" if not isinstance(error, |
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
#include <iostream> | |
#include <curl/curl.h> | |
#include <math.h> | |
#include <vector> | |
#include <future> | |
#include "boost/format.hpp" | |
#define logbase(a, b) (log(a)/log(b)) | |
using namespace std; |
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
""" | |
Updated for discord.py 1.0.x / Rewrite | |
Original credit goes to Vexs | |
""" | |
import discord | |
import asyncio | |
import re | |
from discord.ext import commands | |
import sys |