A beginners guide to using hikari.
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
//-----------------------------------\\ | |
//---*--- Information Section ---*---\\ | |
//-----------------------------------\\ | |
// Written by - LordDakr | |
// Date Created - 2019-07-02 | |
// Youtube Channel - https://www.youtube.com/lorddakr | |
// Licence - https://creativecommons.org/licenses/by-nc-sa/4.0/ | |
//---------------------------------\\ | |
//---*--- Arguments Section ---*---\\ |
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
. | |
. . . | |
. . | |
. | |
. | |
. `+/ . | |
. `-:mNy. |
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
#!/usr/bin/python | |
"""Print a swatch using all 256 colors of 256-color-capable terminals.""" | |
__author__ = 0 | |
__url__ = 0 | |
__version__ = 0 | |
def hrun(start, width, padding=0): | |
return [None] * padding + list(range(start, start + width)) + [None] * padding |
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
import os | |
import random | |
import logging | |
import sys | |
import subprocess | |
# Locate movable scope | |
if os.name == "nt": | |
homedir = os.getenv("HOMEDRIVE") + os.getenv("HOMEPATH") + os.sep + "Desktop" |
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
try: | |
import codecs | |
except ImportError: | |
codecs = None | |
import logging.handlers | |
import time | |
import os | |
class BetterTimedRotatingFileHandler(logging.handlers.TimedRotatingFileHandler): |
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
# -*- coding: utf-8 -*- | |
"""Example plugin for reference.""" | |
import asyncio | |
import hikari | |
import lightbulb | |
import lightbulb.decorators | |
import miru | |
from miru.ext import nav |