Skip to content

Instantly share code, notes, and snippets.

View PlanetTeamSpeakk's full-sized avatar
😎
Vibin

PlanetTeamSpeak PlanetTeamSpeakk

😎
Vibin
  • @ptsmodss
  • Netherlands
View GitHub Profile
import discord
from discord.ext import commands
from __main__ import send_cmd_help
import aiohttp
from bs4 import BeautifulSoup
import random
from .utils import checks
from cogs.utils.dataIO import dataIO
import os
@PlanetTeamSpeakk
PlanetTeamSpeakk / How to get the token of your Discord bot account.md
Last active April 21, 2018 10:55
How to get the token of your Discord bot account.
  1. Go to https://discordapp.com/developers.
  2. Click 'My apps' in the top left: https://i.imgur.com/msNDtLt.png
  3. Click 'New App': https://i.imgur.com/zSTbluP.png
  4. Give your bot a name and optionally a description and avatar: https://i.imgur.com/mwmIn1y.png
  5. Click 'Create App': https://i.imgur.com/MbH7tX2.png
  6. Scroll down and click 'Create a Bot User': https://i.imgur.com/G4L7X0l.png
  7. Click 'Yes, do it!': https://i.imgur.com/Mdfar29.png
  8. Click 'click to reveal' nex to 'Token:': https://i.imgur.com/sOIvcXU.png
@PlanetTeamSpeakk
PlanetTeamSpeakk / How to get the token of your Discord account.md
Created April 21, 2018 11:00
How to get the token of your Discord account
  1. Press ctrl/cmd+shift+i (in the app) or F12 (on the website).
  2. Press the 2 arrows next to each other in the top. (https://cdn.impulsebot.com/RUQzKW71Yz.png)
  3. Click 'Application'. (https://cdn.impulsebot.com/xrU5OwDIxu.png)
  4. Click 'Local Storage'. (https://cdn.impulsebot.com/Yc20dD5Igu.png)
  5. Click whatever URL you can see there. (https://cdn.impulsebot.com/StsccmaCHU.png)
  6. Double click 'token'. (https://cdn.impulsebot.com/kdtDPvDeGi.png)
  7. Press ctrl/cmd+c.
  8. Do not forget to remove the double quotes when pasting.
@PlanetTeamSpeakk
PlanetTeamSpeakk / vpn.md
Created April 23, 2021 14:36 — forked from joepie91/vpn.md
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

  • A Russian translation of this article can be found here, contributed by Timur Demin.
  • A Turkish translation can be found here, contributed by agyild.
  • There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.
@PlanetTeamSpeakk
PlanetTeamSpeakk / ASMRemapper.java
Last active April 18, 2022 10:13
Small tool I made used to automatically use the ASMDump#map(String, String) method to map dumps made by ASMifier. Must be run in a Fabric development environment and assumes there's a mappings.tiny file taken from a yarn v2 jar on the classpath.
package com.ptsmods.morecommands;
import com.google.common.collect.ImmutableList;
import org.apache.commons.lang3.tuple.Pair;
import org.objectweb.asm.util.ASMifier;
import java.io.*;
import java.util.*;
import java.util.function.BiFunction;
import java.util.function.Function;