Skip to content
Advertisement

Discord Python Bot Multiple Value in embed field

So i have a discord bot (using python) that connect to a sqlite database, and i want to show the data using embed. The data is containing my daily anime schedule.

Here’s the code :

JavaScript

The problem is this Discord Embed

There are 2 ‘Sunday’ which is not what i wanted. What i want is (example for Sunday), the ‘Value’ will showing ‘aot (eps :)’n’wataten (eps :)’ So that the result will showing this :

JavaScript

I try to write this

JavaScript

So that for every row in cursor 7, it will automatically creating a new line. But i know it wont working. Can someone help me please?

Advertisement

Answer

For your example, you can do

JavaScript

See: How would you make a comma-separated string from a list of strings?

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement