Skip to content

Instantly share code, notes, and snippets.

View zekroTJA's full-sized avatar
🚀
Fuck it, ship it!

Ringo Hoffmann zekroTJA

🚀
Fuck it, ship it!
View GitHub Profile
@zekroTJA
zekroTJA / FAQ.md
Last active September 8, 2017 15:13
zekro FAQ

zekro FAQ

v.1.0   -   Last edited: 08.09.2017


Wie kann ich dich kontaktieren?

Am besten erreichbar bin ich auf meinem Discord Development Server. Da kannst du mich gern via PN benachichtigen oder, wenn ich mal gerade nicht online bin, meine Supporter oder die anderen User auf meinem Discord um Hilfe für dein Problem befragen. Ansonsten bin ich natürlich auch erreichbar über Twitter und über E-Mail.

@zekroTJA
zekroTJA / 1 - commands.Autochannel.java
Last active May 12, 2020 09:21
JDA Tutorial - Autochannel Function
/*
Snippet created by zekro on 19.09.2017
commands.Autochannel
ONLY FOR EDUCATIONAL PURPOSES
PLEASE READ THIS BEFORE USING THIS CODE:
http://s.zekro.de/codepolicy
© zekro 2017
*/
@zekroTJA
zekroTJA / minecraftServerManager.py
Last active October 18, 2017 13:10
Python script for managing multiple minecraft servers on an VPS
# # # # # # # # # # # # # # # # # # # # # # # # #
# #
# © 2017 Ringo Hoffmann (zekro Development) #
# #
# If you want to use this code, please read #
# this first: http://s.zekro.de/codepolicy #
# #
# With usage of this code or parts of it in #
# any way, you agree to the terms above. #
# #
@zekroTJA
zekroTJA / DiscordBotManager.py
Created October 5, 2017 08:15
A little script for managing multiple discord bots on an linux server
# DISCORD BOT MANAGER - © 2017 Ringo Hoffmann (zekro Development)
# READ BEFORE USAGE: http://s.zekro.de/codepolicy
# To use this tool, you need to create a path structure like following:
# ..
# ├── bot1
# │ ├── ...bot stuff...
# │ └── run.sh
# │
@zekroTJA
zekroTJA / timeFormat.md
Last active June 8, 2018 08:34
Some time formatting snippets

Time formatting snippets

Java

import java.util.Date;
import java.text.DateFormat;
import java.text.SimpleDateFormat;

private String getTime() {
@zekroTJA
zekroTJA / libconnector.so lavaplayer fix.md
Created October 19, 2017 12:06
discord music bot - lavaplayer Linux ARM fix - libconnector.so

discord music bot - lavaplayer Linux ARM fix - libconnector.so

If you are running a JDA discord music bot with the lavaplayer API, you'll get some nasty error messages if you run it on a linux ARM system (like the Raspberry Pi) and it will not work correctly.

I also hasd this error and asked the bot coder jagrosh for help and he gave me the way to solve that problem:

  1. Open your compiled .jar file from your discord bot with 7-Zip or WinRAR or something like that
    screenshot

  2. Navigate to the location /natives/linux-arm

@zekroTJA
zekroTJA / CommandParser.js
Created December 1, 2017 10:36
discord.js - Command Parser Class
const Discord = require('discord.js')
/**
* Create instance of command parser
* @param {*string} prefix Command Prefix
* @param {*discord.Client} bot Bot Instance
*/
class CmdParser {
constructor(prefix, bot) {
@zekroTJA
zekroTJA / config.json
Created December 4, 2017 13:41
discord.js Tutorial - Part 1
{
"token": "YOUR TOKEN HERE",
"owner": "YOUR DISCORD ID HERE",
"prefix": "::"
}
@zekroTJA
zekroTJA / youtube-subgoal-bot.js
Created December 7, 2017 15:23
Little discord.js bot snipped for youtube subscriber goal message
const { Client, RichEmbed } = require('discord.js')
var afterLoad = require('after-load');
// <---[ SETTINGS ]--->
const token = ''
const channelid = 'zekrommaster110'
const goal = 1000
const end = '31.12.2017'
@zekroTJA
zekroTJA / emoji-copy.js
Created December 15, 2017 15:32
Copy emoticons from one discord to another
const { Client } = require('discord.js')
/*****************************************/
const TOKEN = 'bot or account token'
const ACCOUNT = 'your discord account id'
/*****************************************/
/* USAGE:
* >>>emoji GUILD_ID_FROM GUILD_ID_TO
*/