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
priority = 1200 | |
requires_output = False | |
enabled_by_default = True | |
def match(command): | |
return sum([ch.isupper() for ch in command.script]) > sum([ch.islower() for ch in command.script]) |
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
@bot_modules.bot_command("modules", "Allows the server admins to toggle modules like dice or poll", ["list", "<activate|deactivate> <module name>"], admin=True) | |
async def modules_command(ctx: bot_modules.CommandContext): | |
try: | |
commands = [] | |
for i in bot_modules.commands.values(): | |
commands.append(i.cmd) | |
commands.remove("eval") | |
commands.remove("modules") | |
if ctx.args[1] == "activate": | |
if len(ctx.args) < 3: |
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 void onGuildMessageReceived(GuildMessageReceivedEvent event) { | |
String[] messagesplit = event.getMessage().getContentDisplay().split(" "); | |
String invoke = messagesplit[0]; | |
if (event.getAuthor().getId().equals(STATIC.IDAdmin) && invoke.equals("search")){ | |
System.out.println("Der Command wird ausgeführt"); | |
String membername = messagesplit[1]; | |
String Discriminator = messagesplit[2]; | |
List<Member> gefundenemember = null; |
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
<?php | |
$what = "n't that bad of a language"; | |
echo "PHP is$what"; | |
// Outputs: PHP isn't that bad of a language |
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
UEsDBAoAAAAAAEFAM00AAAAAAAAAAAAAAAAXAAkAd29yay1wcm9maWxlYm90LW1hc3Rlci9VVAUA | |
AetkoltQSwMECgAAAAAAQUAzTb+X8sQRAAAAEQAAACEACQB3b3JrLXByb2ZpbGVib3QtbWFzdGVy | |
Ly5naXRpZ25vcmVVVAUAAetkolt2ZW52Lwpjb25maWcuaW5pClBLAwQKAAAACABBQDNNz86ceZEA | |
AAAkAQAAIAAJAHdvcmstcHJvZmlsZWJvdC1tYXN0ZXIvY29uZmlnLnB5VVQFAAHrZKJbVY5JDsIw | |
DEX3PkV2bjfcoCsuwD5CKDQpRJCBOBXi9mRqCivrv/ctewnOsNnZRd+8CKQC08a7ENmxsFNhALXB | |
pj88jI0fghJywBa01TgCSE2zCzLtVM6xETxDdA9lk2mEYwFJgPnQ6/mzU3ISZV7W/ODESuCYU1de | |
EL3rvaY30itSRHEVpPbKRnrl7ijuOqekvlBLAwQKAAAAAABBQDNNAAAAAAAAAAAAAAAAIAAJAHdv | |
cmstcHJvZmlsZWJvdC1tYXN0ZXIvZGF0YWJhc2UvVVQFAAHrZKJbUEsDBAoAAAAIAEFAM01qrYiZ | |
TgAAAHIAAAArAAkAd29yay1wcm9maWxlYm90LW1hc3Rlci9kYXRhYmFzZS9fX2luaXRfXy5weVVU | |
BQAB62SiW0srys9V0EtJLElMSixOVcjMLcgvKlFwArJ981NSc3QUYFJcaWCVBUX5aZk5cIWhxalF |
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 { Client as RPCClient } from 'discord-rpc'; | |
const client = new RPCClient({ transport: 'ipc' }); | |
const scopes = ['rpc', 'rpc.api', 'messages.read']; | |
const clientId = '312256871174111233'; | |
client.on('ready', () => { | |
console.log('Logged in as', client.application.name); | |
console.log('Authed for user', client.user.username); |
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 { Client as RPCClient } from 'discord-rpc'; | |
const client = new RPCClient({ transport: 'ipc' }); | |
const scopes = ['rpc', 'rpc.api', 'messages.read']; | |
const clientId = '312256871174111233'; | |
client.on('ready', () => { | |
console.log('Logged in as', client.application.name); | |
console.log('Authed for user', client.user.username); |
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
#include <stdio.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <time.h> | |
#include <unistd.h> | |
#include <limits.h> | |
#define MAX_NUM_LEN 12 | |
#define HOTSTREAK 3 | |
#define MAX_WINS 16 |
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 asyncio | |
from discord import Embed, Color, Message, Member, Reaction | |
from discord.ext.commands import Bot, Context as CommandContext, command, group, Group, has_permissions | |
YES_REACTION = "\U00002705" | |
NO_REACTION = "\U0000274c" | |
async def create_action_poll(ctx: CommandContext, description, callback): |
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
class Futter { | |
String name; | |
float mass; | |
public Futter(String name) { | |
this.name = name; | |
this.mass = 100f; | |
} | |
public String toString(){ |
OlderNewer