Guest User

Untitled

a guest
May 22nd, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. @bot.command(pass_context=True)
  2. async def vcgencmdmeasure_temp(ctx):
  3. if ctx.message.author.id == "412372079242117123":
  4. await bot.say("OK....")
  5. return_code = subprocess.call("vcgencmd measure_temp", shell=True)
  6. await bot.say("KK done")
  7. await bot.say("Your RPI3 temp is currently: {}".format(return_code))
  8. else:
  9.  
  10. await bot.say("Error user lacks perms(only bot owner can run this)")
Add Comment
Please, Sign In to add comment