[PYTHON] Introduction to discord.py (1st day) -Preparation for discord.py-

greeting

Nice to meet you. My name is Amemin. discord.py I've just started, I will share more and more what I have learned and what I can share, so Advanced people, please watch with warm eyes ... Let's work hard together!

~ Operating environment ~

python V3.8.1 pip V19.3.1 discord.py V1.2.5 Windows10

What you need to make a discord bot ...

① Account for discordbot

In the discord developer portal, make the initial settings by referring to the image below!

  1. Select "New Application" from the portal application qitta1.png

  2. Decide on a name for your bot. * You can change the name later. qiita2.png

  3. Click "Create" and then click the Bot category in settings. qiita3.png

  4. Click "Add bot" on the right side of the screen, and a confirmation screen will appear. Select yes. qiita4.png qiita5.png

  5. Go to the bottom of the bot category and set bot permissions. qiita6.png

6 (when inviting to server). Go to OAuth2 category and select bot qiita7.png 7. Go down and set the permissions required for the bot to enter the server. qiita8.png

That's it for creating a bot account.

② Install discord.py

Do the following in your terminal:

discord.py Installation


$ python3 -m pip install -U discord.py[voice]

This time I will end here. .. .. What shall I write tomorrow ...

Recommended Posts

Introduction to discord.py (1st day) -Preparation for discord.py-
Introduction to discord.py (2)
Introduction to discord.py
Introduction to discord.py (3) Using voice
Introduction to Python For, While
An introduction to Mercurial for non-engineers
[Introduction to Python3 Day 1] Programming and Python
[Introduction to Python3 Day 13] Chapter 7 Strings (7.1-7.1.1.1)
[Introduction to Python3 Day 14] Chapter 7 Strings (7.1.1.1 to 7.1.1.4)
Introduction to Deep Learning ~ Coding Preparation ~
[Introduction to Python3 Day 15] Chapter 7 Strings (7.1.2-7.1.2.2)
Introduction to python-Environmental preparation (mac edition)
An introduction to Python for non-engineers
[Introduction to Python3 Day 21] Chapter 10 System (10.1 to 10.5)
An introduction to OpenCV for machine learning
[Introduction to Python3 Day 19] Chapter 8 Data Destinations (8.4-8.5)
[Introduction to Python3 Day 18] Chapter 8 Data Destinations (8.3.6.2 to 8.3.6.3)
Beginners read "Introduction to TensorFlow 2.0 for Experts"
An introduction to Python for machine learning
An introduction to Python for C programmers
Introduction to MQTT (Introduction)
Introduction to Scrapy (1)
An introduction to machine learning for bot developers
Introduction to Scrapy (3)
Introduction to Supervisor
Introduction to Tkinter 1: Introduction
[Introduction to Python3 Day 12] Chapter 6 Objects and Classes (6.3-6.15)
Competitive professional devotion diary 20th to 22nd day (7/14 to 7/16)
Competitive professional devotion diary 18th to 19th days (7/12 to 7/13)
Competitive professional devotion diary 4th to 10th days (6/28 to 7/4)
Competitive professional devotion diary 15th to 17th days (7/9 to 7/11)
Competitive professional devotion diary 11th-14th days (7 / 5-7 / 8)
Competitive professional devotion record 1-3 days (10 / 14,15,17)
Introduction to discord.py (1st day) -Preparation for discord.py-
Introduction to PyQt
Introduction to Scrapy (2)
[Introduction to Python3 Day 22] Chapter 11 Concurrency and Networking (11.1 to 11.3)
An introduction to statistical modeling for data analysis
[Introduction to Python3 Day 11] Chapter 6 Objects and Classes (6.1-6.2)
[Introduction to Python3 Day 23] Chapter 12 Become a Paisonista (12.1 to 12.6)
Continue to make stock price forecast AI for 10 hours a day 1st month
[Linux] Introduction to Linux
[Introduction to Python3 Day 20] Chapter 9 Unraveling the Web (9.1-9.4)
[Introduction to Udemy Python3 + Application] 43. for else statement
Introduction to Scrapy (4)
Introduction to Programming (Python) TA Tendency for beginners
An introduction to voice analysis for music apps
[For beginners] Introduction to vectorization in machine learning
Day 66 [Introduction to Kaggle] The easiest Titanic forecast
Understand Python for Pepper development. -Introduction to Python Box-
[Introduction to Python3 Day 8] Chapter 4 Py Skin: Code Structure (4.1-4.13)
[Introduction to Python] How to write repetitive statements using for statements
Introduction to Lightning pytorch
Introduction to Web Scraping
Introduction to Nonparametric Bayes
Introduction to EV3 / MicroPython
Introduction to Python language
Introduction to TensorFlow-Image Recognition
Dataset preparation for PyTorch
Introduction to OpenCV (python)-(2)
Introduction to PyQt4 Part 1
Introduction to Dependency Injection
Introduction to Private Chainer
Introduction to machine learning
Easy introduction to home hack with Raspberry Pi and discord.py
Experiment to collect tweets for a long time (Program preparation (3))
Experiment to collect tweets for a long time (Program preparation (1))