Skip to content

Instantly share code, notes, and snippets.

@hwahyang1
Created March 16, 2020 06:24
Show Gist options
  • Save hwahyang1/98bd9fcfeeae79466837e3eccda827f7 to your computer and use it in GitHub Desktop.
Save hwahyang1/98bd9fcfeeae79466837e3eccda827f7 to your computer and use it in GitHub Desktop.
# 메시지 내용에서 "!명령어"를 "가나다라"로 바꾼 다음, 바꾼 내용을 message_replaced 변수에 담습니다.
# "가나다라"를 ""로 두시면 메시지 내용에서 "!명령어"를 지워버리는 구문이 됩니다.
message_replaced = message.content.replace("!명령어", "가나다라")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment