I hereby claim:
- I am jaydenkieran on github.
- I am jkt (https://keybase.io/jkt) on keybase.
- I have a public key ASDPj3x6K9v_JEwPuv-nbFJ_VO-BJM_peewIfW0l677KLwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
from os import listdir | |
from os.path import isfile, join | |
import shutil | |
files = [f for f in listdir("audio_cache") if isfile(join("audio_cache", f))] | |
url = "https://www.youtube.com/watch?v=" |
""" | |
Configuration file generator for SexualRhinoceros/MusicBot (review branch) | |
To use, place this script inside the main directory of the bot and run it | |
Designed to be a "fool proof" way of configuring the bot | |
""" | |
import configparser | |
import os | |
import sys | |
import traceback |
async def c_presence(self, option=None): | |
""" | |
Changes your presence on Discord | |
{prefix}presence <status> | |
Leave blank to reset presence to online. | |
""" | |
afk = False | |
async def cmd_ping(self): | |
""" | |
Usage: | |
{command_prefix}ping | |
Ping command to test latency | |
""" | |
return Response("Pong!") |
async def cmd_sendall(self, args, leftover_args): | |
""" | |
Usage: | |
{command_prefix}sendall <message> | |
Sends a message to all servers the bot is on | |
""" | |
if leftover_args: | |
args = ' '.join([args, *leftover_args]) | |
for s in self.servers: | |
await self.safe_send_message(s, args) |
async def cmd_restart(self, author, channel): | |
for s in self.servers: | |
await self.safe_send_message(s, "Restarting (by {0.name}#{0.discriminator})".format(author)) | |
await self.disconnect_all_voice_clients() | |
raise exceptions.RestartSignal |
Debian Jessie does not come with the correct Python version out of the box, and instead comes with Python 2. To be able to install Python 3(.5), we have a few options. We could build and install from source, but as per Debian's website, we shouldn't do this. Instead, we will use pyenv, a tool that allows users to switch Python versions easily without breaking their system.
To install pyenv, we will use the official installer.
curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
async def cmd_leaveserver(self, id): | |
""" | |
Usage: | |
{command_prefix}leaveserver <id> | |
Removes the bot from a specific server via ID | |
""" | |
target = self.get_server(id) | |
if target is None: | |
raise exceptions.CommandError('The server {} does not exist'.format(id), expire_in=30) |
uBlock Origin, unlike AdBlock Plus and other alternatives, doesn't allow companies to pay to whitelist their ads, and it blocks trackers too. Using it will provide the best experience on Wikia, as the majority of ads and slowdowns will be eliminated.
To block videos using uBlock Origin:
3rd party filters
Update now
button and then enable uBlock filters - Annoyances