Async Tool For Uploading URL's To PirxcyPinger
Project description
PirxcyPinger
Use This To Upload Files To PirxcyPinger
Setup:
Windows: py -3 -m pip install GummyFNAsync
Linux/macOS: python3 -m pip install GummyFNAsync
Examples:
import PirxcyPinger
import os
import asyncio
async def upload():
await PirxcyPinger.post(f"https://{os.environ['REPL_ID'].id.repl.co")
loop = asyncio.get_event_loop()
loop.run_until_complete(upload())
loop.close()
This would output:
[PirxcyPinger] Uploaded {id}.id.repl.co
[PirxcyPinger] Pinged PirxcyPinger
discord.py example:
import PirxcyPinger
import os
import discord
from discord.ext import commands
bot = commands.Bot(command_prefix='>')
url = f"https://{os.environ['REPL_ID']}1.id.repl.co"
@bot.event
async def on_ready():
await PirxcyPinger.post(url)
@bot.command()
async def ping(ctx):
await ctx.send('pong')
bot.run('token')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
PirxcyPinger-0.0.1.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for PirxcyPinger-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0a42b35a8b2cebc62df16fc24f40bae4326309d9c7542a739dce0aa99be95ba |
|
MD5 | b97f536200bccb225feabf3bbb3b7013 |
|
BLAKE2b-256 | 45166a566d647d2487a9159519fd52c05f3991e86989ae380e31f7b74e1fa7cf |