https://wayscript.com/

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

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󰀂)
print(matches[0])
found_keyword = matches[0]
print(keywords)
position = keywords.index(found_keyword)
action = result[position]

outputs[‘action’] = action

Follow WayScript on Social Media:
Discord – https://discord.gg/VWbXSbj
GitHub – https://github.com/wayscript
Twitter – https://twitter.com/WayScriptHQ
Linkedin – https://www.linkedin.com/company/wayscript/
Facebook – https://www.facebook.com/wayscript/

#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:
https://wayscript.com/library

Ready to get started? Get Superpowers with WayScript today.