So I have a function which obtains multiple arguments from a person:
@bot.command(name='koth')
async def koth_announcer(*args):
But how am I able to split the arguments into strings at a certain point? For instance: The user will input this: The Goblin Camp | -39,19 | 12:00 | 28/12
I need to be able to split the string at |. I tried:
args = str(args).split('|')
But this still returns everything as separate. Like this:
["('The'", " 'Goblin'", " 'Camp'", " '|'", " '-39", "19'", " '|'", " '12:00'", " '|'", " '28/12')"]
["('The Goblin Camp ', '-39,19')"]