blob: 5443d43e987a697018309ef5f71052f699cbbf0f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/usr/bin/python3
from telebot import TeleBot
from telebot import formatting
from fortniteStatusWrapper import formatFortniteStatus
from pythonFortniteStatus.FortniteStatus import *
bot = TeleBot('6860285100:AAFkBS_ncl38XN4_Em_nzSt93Jlwc5BJ9mU')
fortniteStatus = FortniteStatus()
@bot.message_handler(commands = ['start'])
def url(message):
bot.reply_to(message, "This bot is doing nothing so far..")
@bot.message_handler(commands = ['status'])
def fortniteStatusCommand(message):
bot.send_message(
message.chat.id,
formatFortniteStatus(fortniteStatus.getStatus()),
parse_mode='MarkdownV2'
)
bot.polling(none_stop=True, interval=0)
|