Last active
July 26, 2018 07:14
-
-
Save cbuctok/d9bdb2aa7bf474fe4f2175be34bac1be to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import sys | |
import telepot | |
message = "NONE" | |
TOKEN = TOKEN | |
id = ID | |
if (len(sys.argv) < 2): | |
print("whatdotbot MESSAGE") | |
else: | |
bot = telepot.Bot(TOKEN) | |
message = ' '.join(sys.argv[1:]) | |
bot.sendMessage(id, '{}'.format(message)) | |
print("SENT", message) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment