Skip to content

Commit

Permalink
New Contains function
Browse files Browse the repository at this point in the history
  • Loading branch information
LilbabxJJ-1 committed May 10, 2024
1 parent aefc23e commit 9b1865c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions CharmCord/all_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"$channelURL",
"$charmAI",
"$console",
"$contains",
"$count",
"$defer",
"$deleteMessage",
Expand Down
7 changes: 7 additions & 0 deletions CharmCord/functions/Python/contains.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
async def contains(args: str, context):
data = args.split(';')
text = data[0]
del data[0]
if text in data:
return True
return False

0 comments on commit 9b1865c

Please sign in to comment.