Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sunho/simple-discordpy

simplified discord py for coding education
https://github.com/sunho/simple-discordpy

Last synced: 25 days ago
JSON representation

simplified discord py for coding education

Awesome Lists containing this project

README

        

# simple-discordpy

Targetting students who learn python for the first time, this library wraps discord.py to eliminate the complex syntaxes such as await and class.

The library was able to motivate the students I taught by enabling them to use python for applications in real world without learning extra notions.

## Installation

simple-discordpy can be installed with the following command.
```
pip install simple-discordpy
```

I recommend [repl.it](https://repl.it). It supports installing pip package in "packages" tab. Just search "simple-discordpy" there.

## Example

As the features of this libray is limited, almost all of them can be covered just by the following example.

```python
from sd import *
sdstart('discord token') # start the bot

sdprint("input a") # send discord message
a=sdinput() # receive a string from user through discord
sdprint("a", a)
sdstop() # stops the bot
```