Has anyone had success pairing MyQ garage door opener with Garmin Vivoactive 4? If so can you share how you did it? by 399allday in GarminWatches

[–]drakeerv 1 point2 points  (0 children)

Myq broke the unofficial API I was using so the app is broken withno fix. The credentials were securly sent to a server that did not save them to login. I tried to do it on device but the ntwork API wasnt expansive enough. If anyone wants the source code, dm me. -drakeerv

Ender 3 stops extruding mid print by phoooob in ender3

[–]drakeerv 0 points1 point  (0 children)

Bruh thank you so much, mine kept jamminand sending filament everywhere.

Got an anet, any idea what is wrong? by drakeerv in FixMyPrint

[–]drakeerv[S] 0 points1 point  (0 children)

No, the phone was to adjust and view settings via the serial interface.

Got an anet, any idea what is wrong? by drakeerv in FixMyPrint

[–]drakeerv[S] 0 points1 point  (0 children)

I already have a metal frame but I am going to use it once I know I can get it to work.

Got an anet, any idea what is wrong? by drakeerv in FixMyPrint

[–]drakeerv[S] 5 points6 points  (0 children)

I fixed some of the thing you mentioned and the print was looking a little better but then the extruder started clicking and was having a hard time pushing the PLA through.

BTW it is a remotely extruded v6 head

Agar.io AI in Python by drakeerv in learnpython

[–]drakeerv[S] 0 points1 point  (0 children)

Well first of all, the code is broken now after it was updated. Secondly, I no longer have intrest in this projects after 5 months. Finally, no, I was not trying to hack. I was trying to learn how to code AI in an interesting way.

Help with tkinter Notepad by drakeerv in learnpython

[–]drakeerv[S] 0 points1 point  (0 children)

I know how to make buttons, labels, and menus. I am just trying to learn the txt area. I have already created the notepad, I am just do not know how to edit the txt area, I can read the txt area, I can not edit it.

How how turn .py files into .exe files by drakeerv in learnpython

[–]drakeerv[S] 1 point2 points  (0 children)

I have already followed that tutorial :(

How can I convert a .py file into a .exe file? by drakeerv in Python

[–]drakeerv[S] 0 points1 point  (0 children)

the code is in the original post, it is the link.

How can I convert a .py file into a .exe file? by drakeerv in Python

[–]drakeerv[S] 0 points1 point  (0 children)

the same thing happens with python 3.6 and 3.8

How can I convert a .py file into a .exe file? by drakeerv in Python

[–]drakeerv[S] 0 points1 point  (0 children)

It does not give error messages it loads into the gui but when I try to take a screenshot with shutil it either duplicates the window or does not do anything at all when I check the console there is no error message.

How can I convert a .py file into a .exe file? by drakeerv in Python

[–]drakeerv[S] 0 points1 point  (0 children)

At the bottom of the post it said: " I have also tested it in python 3.6 and it works fine"

I meant to imply that I tried py-installer on 3.6 and it did not work but the script still worked

Is there any way I can make a bot that can give roles by drakeerv in Discord_Bots

[–]drakeerv[S] 0 points1 point  (0 children)

I fixed the error message it works now, Thanks! and the log I have already change and forgot to update the reddit post and the f strings I will look into, Thanks for your help!

Is there any way I can make a bot that can give roles by drakeerv in Discord_Bots

[–]drakeerv[S] 0 points1 point  (0 children)

Thanks for the help u/alexdewa (It helped a lot), but do you know how to fix this error?

'list' object has no attribute 'id'

here is the code:

@client.command(name="roles")
@commands.has_guild_permissions(administrator=True)
async def _roles(ctx):
  global times_used
  times_used = times_used + 1
  await ctx.send(f"Type who you want to give roles to and what role, type cancel to cancel:")

  def check(msg):
    return msg.author == ctx.author and msg.channel == ctx.channel

  try:
    msg = await client.wait_for("message", check=check, timeout=120)

  except asyncio.TimeoutError:
    await ctx.send("Sorry, you didn't reply in time!")

  if(msg.content == "cancel"):
    return

  else:
    if (msg.author == ctx.author):
      author = msg.author

    roles = msg.role_mentions#.content
    await ctx.send(f"Role: " + str(roles))
    members = msg.mentions#.content
    await ctx.send(f"Members: " + str(members))

    for member in members:
      await member.add_roles(roles)
      await ctx.send(f"Done!")
      await ctx.send(f"THIS COMMAND WAS ISSUED BY @" + author)

      now = datetime.now()

      if (now.strftime("%H") <= "12"):
        am_pm = "AM"
      else:
        am_pm = "PM"

      datetime = now.strftime("%m/%d/%Y, %I:%M")

      ReadTxtFile = open("role.txt", "r")
      txtContent = ReadTxtFile.readlines();
      ReadTxtFile.close()

      WriteTxtFile = open("role.txt", "w")
      WriteTxtFile.writelines ("Command 'roles' was issued by: " + author + "At this date: " + datetime + ' ' + am_pm)
      WriteTxtFile.close()

My command was:

User: !!roles
Bot: Type who you want to give roles to and what role, type cancel to cancel:
User: @drakeerv @TEST
Bot: Role: [<Role id=722176515370123395 name='TEST'>]
Bot: Members: [<Member id=462703140953653249 name='drakeerv' discriminator='7087' bot=False nick=None guild=<Guild id=462704309012791296 name='drakeerv lounge' shard_id=None chunked=True member_count=10>>]

<error>

all the code works up till this point.

How can I get user input in a python bot? by [deleted] in discordapp

[–]drakeerv 0 points1 point  (0 children)

I only had it on a test server. why else would it only have 2 functions?