Running a LINE Bot with a basic classroom functionality, with homework and market commands.
Here's the editting format:
HOMEWORK_CONTENT
- Homework contentHOMEWORK_CONTENT$$DUE
- Homework content with a due date.$$none
- No due date (green).$$today
- Due today (red).$$DATE
- Due on a custom date. (e.g. Friday)
;note=NOTE_CONTENT
- Note that displays at the bottom of the message.
Make sure to edit the store_items
and students
!
store_items
format:
{
"item 1": 100 // the price
"item 2": float("inf")
}
students
format:
{
"STUDENT_USER_ID": 100 // points
}
You can see the user / student's user id by adding ctx.author.id
:
@client.event
def msg(ctx):
print(ctx.author.id) # prints out the ID.
That's about it! Have fun!
haha