A template that help you getting started with Pycord.

Overview

A Pycord Template with some example!

Getting Started:

  1. Clone this repository using
git clone https://github.com/AungS8430/pycord-template.git
  1. If you have discord.py installed, please do pip uninstall discord.py first.
  2. You must have Python 3.8 or above installed ( I use Python 3.8.12).
  3. Do
pip install -r requirements.txt

to install requirements. 5. Go to .env.example, remove .example and insert your bot's token and welcome channel ID into the file. You must keep your bot's token private! 6. To run this basic bot, run

python 3.8 main.py

in the same directory as your bot.

Adding Commands or Events:

Add commands:

  1. Create a new Python file in /cogs/commands
  2. Add this code in the file
import discord
from discord.ext import commands, tasks
from discord.commands import slash_command, Option #, SlashCommandGroup if you want to create a category.
class CogName(commands.Cog): # Replace 'CogName' with your cog name.
    def __init__(self, bot):
        self.bot = bot
    category = SlashCommandGroup('Category name', 'Category description')
    @slash_command( #change it into @category.command( if you use category.
        name='command name here',
        description='commnad description here',
    )
    async def commandname(self, ctx, option: Option(str, 'This is option', required=True)):
        embed = discord.Embed(
            title='hello',
            description=f'{option}',
            color=discord.Color.green()
        )
        await ctx.respond(embed=embed)

def setup(bot):
    bot.add_cog(CogName(bot))
  1. Add the file directory into main.py in this format cogs.commands.filename

Add event:

  1. Create a new Python file in /cogs/events
  2. Add this code in the file
import discord
from discord.ext import commands, tasks

class CogName(commands.Cog): # Replace 'CogName' with your cog name.
    def __init__(self, bot):
        self.bot = bot
    @command.Cog.listener()
    async def eventname(self, ...):
        # do something
    
def setup(bot):
    bot.add_cog(CogName(bot))
  1. Add the file directory into main.py in this format cogs.event.filename
Py hec token mgr - Create HEC tokens in Cribl Stream through the API

Add HEC tokens via API calls This script is intended as an example of how to aut

Jon Rust 3 Mar 04, 2022
๐€ ๐ฆ๐จ๐๐ฎ๐ฅ๐š๐ซ ๐“๐ž๐ฅ๐ž๐ ๐ซ๐š๐ฆ ๐†๐ซ๐จ๐ฎ๐ฉ ๐ฆ๐š๐ง๐š๐ ๐ž๐ฆ๐ž๐ง๐ญ ๐›๐จ๐ญ ๐ฐ๐ข๐ญ๐ก ๐ฎ๐ฅ๐ญ๐ข๐ฆ๐š๐ญ๐ž ๐Ÿ๐ž๐š๐ญ๐ฎ๐ซ๐ž๐ฌ !!

๐‡๐จ๐ฐ ๐“๐จ ๐ƒ๐ž๐ฉ๐ฅ๐จ๐ฒ For easiest way to deploy this Bot click on the below button ๐Œ๐š๐๐ž ๐๐ฒ ๐’๐ฎ๐ฉ๐ฉ๐จ๐ซ๐ญ ๐†๐ซ๐จ๐ฎ๐ฉ ๐’๐จ๐ฎ๐ซ๐œ๐ž๐ฌ ๐†๐ž๐ง๐ž?

Mukesh Solanki 4 Oct 18, 2021
A simple economy bot for discord!

Enter all the correct values in the given configuration.json file. Make sure that BOT_TOKEN is a string value, and that OWNER_ID and GUILD_ID are integer values.

WonkyPigs 0 Aug 22, 2022
thumbor is an open-source photo thumbnail service by globo.com

Survey If you use thumbor, please take 1 minute and answer this survey? It's only 2 questions and one is multiple choice!!! thumbor is a smart imaging

Thumbor (by @globocom) 9.3k Dec 31, 2022
Unofficial python api for MicroBT Whatsminer ASICs

whatsminer-api Unofficial python api for MicroBT Whatsminer ASICs Code adapted from a python file found in the Whatsminer Telegram group that is credi

Satoshi Anonymoto 16 Dec 23, 2022
Source code of BobuxAdmin bot from Bobux Bot Development server.

BobuxAdmin Source code of BobuxAdmin bot from Bobux Bot Development server. The bot is written with usage of disnake and SQLite database. Functionalit

Bobux Bot Developers 3 Dec 29, 2022
52pojie ๅพ็ˆฑ็ ด่งฃ่ฎบๅ› ็ญพๅˆฐ ๆ”ฏๆŒไบ‘ๅ‡ฝๆ•ฐ/ๆœๅŠกๅ™จ็ญ‰Py3็Žฏๅขƒ่ฟ่กŒ

52pojie-Checkin 52pojie ๅพ็ˆฑ็ ด่งฃ่ฎบๅ› ็ญพๅˆฐ Py3ๅ•็จ‹ๅบ ๆ”ฏๆŒไบ‘ๅ‡ฝๆ•ฐ/ๆœๅŠกๅ™จ็ญ‰Py3็Žฏๅขƒ่ฟ่กŒ ๅช้œ€่ฆCookieๅณๅฏ่ฟ่กŒ ๆ–ฐ็‰ˆ่ฏดๆ˜Ž ไพ่ต–ๅŒ…่ฏท็”จ้กน็›ฎ https://github.com/BlueSkyXN/requirements-serverless ้œ€่ฆๅกซๅ†™็š„ๅ‚ๆ•ฐๆœ‰ co

BlueSkyXN 22 Sep 15, 2022
Sukoshi is a proof-of-concept Python implant that leverages the MQTT protocol for C2 and uses AWS IoT Core as infrastructure.

Sukoshi | ๅฐ‘ใ— Overview Sukoshi is a proof-of-concept Python implant that leverages the MQTT protocol for C2 and uses AWS IoT Core as infrastructure. It

Steven Patterson 37 Oct 29, 2022
A chatbot that helps you set price alerts for your amazon products.

Amazon Price Alert Bot Description A Telegram chatbot that helps you set price alerts for amazon products. The bot checks the price of your watchliste

Rittik Basu 24 Dec 29, 2022
A simple MTProto-based bot that can download various types of media (>10MB) on a local storage

TG Media Downloader Bot ๐Ÿค– A telegram bot based on Pyrogram that downloads on a local storage the following media files: animation, audio, document, p

Alessio Tudisco 11 Nov 01, 2022
:snake: Python SDK to query Scaleway APIs.

Scaleway SDK Python SDK to query Scaleway's APIs. Stable release: Development: Installation The package is available on pip. To install it in a virtua

Scaleway 114 Dec 11, 2022
Web3 Pancakeswap Sniper & honeypot detector Take Profit/StopLose bot written in python3, For ANDROID WIN MAC & LINUX

Pancakeswap BSC Sniper Bot web3 with honeypot detector (ANDROID WINDOWS MAC LINUX) First SNIPER BOT for ANDROID with honeypot detector Web3 Pancakeswa

HYDRA 1 Dec 23, 2021
Univerity-student oriented (lithuanian) discord bot

Univerity-student oriented (lithuanian) discord bot

3 Nov 30, 2021
Soundcloud Music Downloader

Soundcloud Music Downloader Description This script is able to download music from SoundCloud and set id3tag to the downloaded music. Compatible with

Ronan 2.6k Jan 01, 2023
This is a scalable system that reads messages from public Telegram channels using Telethon and stores the data in a PostgreSQL database.

This is a scalable system that reads messages from public Telegram channels using Telethon and stores the data in a PostgreSQL database. Its original intention is to monitor cryptocurrency related ch

Greg 3 Jun 07, 2022
AminoAutoRegFxck/AutoReg For AminoApps.com

AminoAutoRegFxck AminoAutoRegFxck/AutoReg For AminoApps.com Termux apt update -y apt upgrade -y pkg install python git clone https://github.com/deluvs

3 Jan 18, 2022
Plugin for Sentry which allows sending notification via Telegram messenger.

Sentry Telegram Plugin for Sentry which allows sending notification via Telegram messenger. Presented plugin tested with Sentry from 8.9 to 9.1.1. DIS

Shmele 208 Dec 30, 2022
ๆ•ฐๅญ—่ดงๅธๅŠจๆ€่ถ‹ๅŠฟ็ฝ‘ๆ ผ๏ผŒ้š็€่กŒๆƒ…ๅ˜ๅŠจใ€‚็›ฎๅ‰ๅฎž็›˜ๆœˆๅŒ–10%ใ€‚็›ฎๅ‰ๆ”ฏๆŒๅธๅฎ‰๏ผŒๆœชๆฅไธŠ็บฟ็ซๅธใ€OKEXใ€‚

ๆ•ฐๅญ—่ดงๅธๅŠจๆ€่ถ‹ๅŠฟ็ฝ‘ๆ ผ๏ผŒ้š็€่กŒๆƒ…ๅ˜ๅŠจใ€‚็›ฎๅ‰ๅฎž็›˜ๆœˆๅŒ–10%ใ€‚็›ฎๅ‰ๆ”ฏๆŒๅธๅฎ‰๏ผŒๆœชๆฅไธŠ็บฟ็ซๅธใ€OKEXใ€‚

ๅนธ็ฆๆ‘็š„็ ๅ†œ 98 Dec 27, 2022
Una herramienta para transmitir mensajes automรกticamente a mรบltiples grupos de chat

chat-broadcast Una herramienta para transmitir mensajes automรกticamente a mรบltiples grupos de chat Setup Librerรญas Necesitas Python 3 con la librerรญa

Seguimos 2 Jan 09, 2022
A python wrapper for interacting with the LabArchives API.

LabArchives API wrapper for Python A python wrapper for interacting with the LabArchives API. This very simple package makes it easier to make arbitra

Marek Cmero 3 Aug 01, 2022