Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Noah-It-All
Noah-It-All / DiscordPy Tutorial.md
Created June 4, 2021 14:55 — forked from 4Kaylum/DiscordPy Tutorial.md
A simple bot tutorial for Discord.py

Writing a Discord bot with Discord.py

Hey one, hey all, and welcome to a basic Discord bot writing tutorial. This is a basic tutorial that doesn't cover coding in general, but rather how to work with the Discord.py (v1.0.0a) library and how to write a simple bot with it. General help can be found on the Discord API guild and in the documentation.

This tutorial assumes some prior knowledge of programming, and assumes you already have Python3.5 (and Pip) or later installed and added to your PATH.

With that, let's get to it.

Installation

@Noah-It-All
Noah-It-All / atpdownloader.py
Last active May 13, 2021 13:49
It Downloads all the episodes of the Accidental Tech Podcast! (Read Comments for instructions)
import os
import requests
import feedparser
# Config
save_dir = './Podcasts/'+ 'Accidental Tech Podcast'
# Init Save Dir
@Noah-It-All
Noah-It-All / pyautoclicker.py
Last active March 2, 2021 14:32
python auto clicker that uses pyautogui, to install pyautogui go to command prompt and write pip install pyautogui
import pyautogui
from time import sleep
clicktime = input("How many times should it click?")
looptime = input("How Many Times Should It Loop?")
sleeptime = input("How many seconds should we wait before it starts?")
sleep(int(sleeptime))
for x in range(int(looptime)):
pyautogui.click(clicks=int(clicktime))