Adding minecraft map functionality back to the bot
This commit is contained in:
parent
7748a54d3c
commit
e770ed86a6
@ -412,17 +412,17 @@ async def on_message(message):
|
||||
|
||||
|
||||
|
||||
# if message.content.startswith('!minecraft'):
|
||||
# # Check permissions
|
||||
# if not role_check.docker_permissions(message.author.roles):
|
||||
# await client.send_message(
|
||||
# message.channel,
|
||||
# "You dont have permission to run docker commands"
|
||||
# )
|
||||
# return
|
||||
if message.content.startswith('!minecraft'):
|
||||
# Figure out what action they want to take
|
||||
action = message.content.split()[1]
|
||||
if action == 'map':
|
||||
await client.send_message(
|
||||
message.channel,
|
||||
"https://luker.gq/minecraft"
|
||||
)
|
||||
|
||||
# if len(message.content.split()) == 1:
|
||||
# actions = ['restart', 'status', 'logs', 'map']
|
||||
# actions = ['restart', 'status', 'logs']
|
||||
# await client.send_message(
|
||||
# message.channel,
|
||||
# "\nSupported actions:```\n{}```".format(", ".join(actions))
|
||||
@ -430,7 +430,7 @@ async def on_message(message):
|
||||
# else:
|
||||
# docker_client = docker.from_env()
|
||||
# try:
|
||||
# minecraft_container = docker_client.containers.get('beyondreality')
|
||||
# minecraft_container = docker_client.containers.get('minecraft_eternal')
|
||||
# except:
|
||||
# await client.send_message(
|
||||
# message.channel,
|
||||
@ -438,8 +438,6 @@ async def on_message(message):
|
||||
# )
|
||||
# return
|
||||
|
||||
# # Figure out what action they want to take
|
||||
# action = message.content.split()[1]
|
||||
# if action == 'restart':
|
||||
# await client.send_message(
|
||||
# message.channel,
|
||||
@ -505,11 +503,6 @@ async def on_message(message):
|
||||
# message.channel,
|
||||
# "There arent {} lines of output yet".format(num_lines)
|
||||
# )
|
||||
# if action == 'map':
|
||||
# await client.send_message(
|
||||
# message.channel,
|
||||
# "https://luker.gq/minecraft"
|
||||
# )
|
||||
|
||||
|
||||
client.run(os.getenv('token'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user