1
1
1 22021-01-20 20:41:46
Python
1 2, 2021-01-20 20:41:46

Discord.py how to make a template engine?

I want to make a !temp command that works like this:
!temp send("123") - and message 123 is sent to the current channel, or:

!temp
{% if(message.author) == message.author %}
send ('yes')
{% else %}
send('no')

Could you tell me how to start making this template engine using such simple examples so that I can figure it out myself?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
_
_, 2021-01-20
@weRifiCatoR

Use ready. For example Jinja.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question