In this one we’ll look at how we can build custom commands onto a WayScript discord bot using python programming, discord, and

Sign up for WayScript today!

Code used in this video:
keywords = inputs[‘keywords’]
result = inputs[‘result’]
import re

command = re.compile(r’![a-z]*’)
matches = command.findall(󰀂v.0-Discord Message Text󰀂)
found_keyword = matches[0]
position = keywords.index(found_keyword)
action = result[position]

outputs[‘action’] = action

Follow WayScript on Social Media:
Discord –
GitHub –
Twitter –
Linkedin –
Facebook –

#WayScript gives you flexible building blocks to seamlessly integrate, automate, and host tools in the cloud. Unlock new potential with drag and drop programming.

Need ideas on how to use WayScript? View our template library to get ideas:

Ready to get started? Get Superpowers with WayScript today.