'choosing what part of the message content I want to select Discord.py
so im using discord.py to script a website search so lets say I want to type in discord "$youtube logic" I want my script to take that logic and search it in "youtube.com" so what i have rn is
if message.content.startswith('$youtube'):
await message.channel.send(f'{youtube}{message.content}')
that works because it returns the link I want, however its including both the content and the $youtube. how can I remove the start and not the rest?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|