Code Monkey home page Code Monkey logo

discord-selfbot's People

Contributors

aareon avatar appu1232 avatar architdate avatar armandsyah avatar astronautlevel2 avatar bluscream avatar bmintz avatar chenzw95 avatar doron-goldstein avatar fallenwarrior2k avatar griffing1 avatar hubcapp avatar ioistired avatar jan200101 avatar lyricly avatar macleykun avatar martinmine avatar netflixandbill avatar noirscape avatar probablygallium avatar repulser avatar rmccrystal avatar samdenty avatar shikhir-arora avatar starwort avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

discord-selfbot's Issues

Calc unable to calculate currencies

I could try to fix this myself, but i can't find the calc code

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\Kyle\AppData\Local\Programs\Python\Python35\lib\site-packages\discord\ext\commands\bot.py", line 846, in process_commands
    yield from command.invoke(ctx)
  File "C:\Users\Kyle\AppData\Local\Programs\Python\Python35\lib\site-packages\discord\ext\commands\core.py", line 634, in invoke
    yield from ctx.invoked_subcommand.invoke(ctx)
  File "C:\Users\Kyle\AppData\Local\Programs\Python\Python35\lib\site-packages\discord\ext\commands\core.py", line 374, in invoke
    yield from injected(*ctx.args, **ctx.kwargs)
  File "C:\Users\Kyle\AppData\Local\Programs\Python\Python35\lib\site-packages\discord\ext\commands\core.py", line 54, in wrapped
    raise CommandInvokeError(e) from e
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: UnicodeEncodeError: 'charmap' codec can't encode character '\u2764' in position 8: character maps to <undefined>
Ignoring exception in command calc
Traceback (most recent call last):
  File "C:\Users\Kyle\AppData\Local\Programs\Python\Python35\lib\site-packages\discord\ext\commands\core.py", line 50, in wrapped
    ret = yield from coro(*args, **kwargs)
  File "C:\Users\Kyle\vps\discord\Selfbot-for-Discord-master\cogs\misc.py", line 375, in calc
    answer = str(eval(equation))
  File "<string>", line 1
    18,295,926,372,014,800/5000
                     ^
SyntaxError: invalid token

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\Kyle\AppData\Local\Programs\Python\Python35\lib\site-packages\discord\ext\commands\bot.py", line 846, in process_commands
    yield from command.invoke(ctx)
  File "C:\Users\Kyle\AppData\Local\Programs\Python\Python35\lib\site-packages\discord\ext\commands\core.py", line 374, in invoke
    yield from injected(*ctx.args, **ctx.kwargs)
  File "C:\Users\Kyle\AppData\Local\Programs\Python\Python35\lib\site-packages\discord\ext\commands\core.py", line 54, in wrapped
    raise CommandInvokeError(e) from e
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: SyntaxError: invalid token (<string>, line 1)
Ignoring exception in command calc
Traceback (most recent call last):
  File "C:\Users\Kyle\AppData\Local\Programs\Python\Python35\lib\site-packages\discord\ext\commands\core.py", line 50, in wrapped
    ret = yield from coro(*args, **kwargs)
  File "C:\Users\Kyle\vps\discord\Selfbot-for-Discord-master\cogs\misc.py", line 375, in calc
    answer = str(eval(equation))
  File "<string>", line 1
    $18295926372014800/5000
    ^
SyntaxError: invalid syntax

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\Kyle\AppData\Local\Programs\Python\Python35\lib\site-packages\discord\ext\commands\bot.py", line 846, in process_commands
    yield from command.invoke(ctx)
  File "C:\Users\Kyle\AppData\Local\Programs\Python\Python35\lib\site-packages\discord\ext\commands\core.py", line 374, in invoke
    yield from injected(*ctx.args, **ctx.kwargs)
  File "C:\Users\Kyle\AppData\Local\Programs\Python\Python35\lib\site-packages\discord\ext\commands\core.py", line 54, in wrapped
    raise CommandInvokeError(e) from e
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: SyntaxError: invalid syntax (<string>, line 1)

When installing on heroku

I followed the installations precisely
When running locally it works perfectly
When running on heroku after starting, I get this error repeatedly:

2017-08-19T00:27:27.144148+00:00 app[worker.1]: Welcome to Appu's Discord Selfbot!
2017-08-19T00:27:27.144161+00:00 app[worker.1]: 
2017-08-19T00:27:27.144162+00:00 app[worker.1]: Go into your Discord window and press Ctrl+Shift+I (Ctrl+Opt+I can also work on macOS)
2017-08-19T00:27:27.144176+00:00 app[worker.1]: Then, go into the Applications tab (you may have to click the arrow at the top right to get there), expand the 'Local Storage' dropdown, select discordapp, and then grab the token value at the bottom. Here's how it looks: https://imgur.com/h3g9uf6
2017-08-19T00:27:27.144204+00:00 app[worker.1]: Paste the contents of that entry below.
2017-08-19T00:27:27.144206+00:00 app[worker.1]: -------------------------------------------------------------
2017-08-19T00:27:27.144417+00:00 app[worker.1]: | Traceback (most recent call last):
2017-08-19T00:27:27.144437+00:00 app[worker.1]:   File "appuselfbot.py", line 113, in <module>
2017-08-19T00:27:27.144696+00:00 app[worker.1]:     with open('settings/config.json', encoding='utf-8', mode="r") as f:
2017-08-19T00:27:27.144718+00:00 app[worker.1]: FileNotFoundError: [Errno 2] No such file or directory: 'settings/config.json'
2017-08-19T00:27:27.144721+00:00 app[worker.1]: 
2017-08-19T00:27:27.144722+00:00 app[worker.1]: During handling of the above exception, another exception occurred:
2017-08-19T00:27:27.144722+00:00 app[worker.1]: 
2017-08-19T00:27:27.144740+00:00 app[worker.1]: Traceback (most recent call last):
2017-08-19T00:27:27.144756+00:00 app[worker.1]:   File "appuselfbot.py", line 116, in <module>
2017-08-19T00:27:27.144956+00:00 app[worker.1]:     wizard()
2017-08-19T00:27:27.144960+00:00 app[worker.1]:   File "appuselfbot.py", line 93, in wizard
2017-08-19T00:27:27.145146+00:00 app[worker.1]:     config["token"] = input("| ").strip().strip('"')
2017-08-19T00:27:27.145167+00:00 app[worker.1]: EOFError: EOF when reading a line

Please help!

Cant add reactions with >py command

I can't seem to get a custom )py command to work
)py bot.add_reaction(discord.Message(id='300425969653514240'), ':ok_hand:')
i get an error in the command prompt along the lines of
UnicodeEncodeError: 'charmap' codec can't encode character '\u2139' in position 143: character maps to <undefined>

Embed doesn't work (for me)

I blame 014c942

Embedding worked before updating from an old version.

I get this error now:
From line 107 of misc.py: AttributeError: module 'discord' has no attribute 'Embed'

Old code (worked for me):
em = discord.Embed(description=msg)

New code (raises an exception, embeds don't work):
em = discord.Embed(title=title, description=description, color=int(color, 16))


My version of the discord library is
Requirement already satisfied: discord.py==0.16.6 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 1))

My operating system is Debian.

Run with cmd closed?

Is there a way to run this without having cmd open? Currently if I close it then the bot will stop.

settings2 folder and removal of settings folder

when i update the bot it removes my "Settings" folder and replace it with "Settings2", then during boot up it continues to ask for token and the small setup tutorial without getting past it and boot

Image search

I got Normal search just fine but image search doesnt work...

Error in terminal:

  Ignoring exception in command i
Traceback (most recent call last):
  File "/home/gideon/.local/lib/python3.5/site-packages/discord/ext/commands/core.py", line 50, in wrapped
    ret = yield from coro(*args, **kwargs)
  File "/home/gideon/Illyasveil/addons/google.py", line 236, in i
    if query[0].isdigit():
UnboundLocalError: local variable 'query' referenced before assignment

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/gideon/.local/lib/python3.5/site-packages/discord/ext/commands/bot.py", line 848, in process_commands
    yield from command.invoke(ctx)
  File "/home/gideon/.local/lib/python3.5/site-packages/discord/ext/commands/core.py", line 369, in invoke
    yield from injected(*ctx.args, **ctx.kwargs)
  File "/home/gideon/.local/lib/python3.5/site-packages/discord/ext/commands/core.py", line 54, in wrapped
    raise CommandInvokeError(e) from e
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: UnboundLocalError: local variable 'query' referenced before assignment
Ignoring exception in command None

Token Not Accepted

Solved: doesn't work using bot token. Use localStorage token.

I set my token in /settings/config.json and despite being valid, it isn't being accepted (see log). What could be the cause? I am using a bot user created from the Discord developer dashboard, and ensured the token value was current/correct.

JSON:

{
    "token" : "********************.******************-********",
    "cmd_prefix": "/",
    "customcmd_prefix": "$",
    "bot_identifier": ""
}

Logs:

Warning: this script is still an alpha, expect bugs
Starting auto-update
Fetching origin
From https://github.com/appu1232/Discord-Selfbot
 * branch            master     -> FETCH_HEAD
The bot is up to date.
Checking requirements...
Using global pip3 executable
Starting bot...
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/discord/http.py", line 258, in static_login
    data = yield from self.request(Route('GET', '/users/@me'))
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/discord/http.py", line 200, in request
    raise HTTPException(r, data)
discord.errors.HTTPException: UNAUTHORIZED (status code: 401): 401: Unauthorized

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "appuselfbot.py", line 541, in <module>
    bot.run(config['token'], bot=False)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/discord/client.py", line 519, in run
    self.loop.run_until_complete(self.start(*args, **kwargs))
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/asyncio/base_events.py", line 466, in run_until_complete
    return future.result()
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/discord/client.py", line 490, in start
    yield from self.login(*args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/discord/client.py", line 416, in login
    yield from getattr(self, '_login_' + str(n))(*args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/discord/client.py", line 346, in _login_1
    data = yield from self.http.static_login(token, bot=is_bot)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/discord/http.py", line 262, in static_login
    raise LoginFailure('Improper token has been passed.') from e
discord.errors.LoginFailure: Improper token has been passed.
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x103930550>
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x10456fba8>
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x104b36f28>
Task was destroyed but it is pending!
task: <Task pending coro=<game_and_avatar() running at appuselfbot.py:438> wait_for=<Future pending cb=[Task._wakeup()]>>
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/discord/http.py", line 258, in static_login
    data = yield from self.request(Route('GET', '/users/@me'))
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/discord/http.py", line 200, in request
    raise HTTPException(r, data)

Any help would be appreciated.

Python version:

$ python3 --version
Python 3.5.3

Running macOS Sierra 10.12.2..

Edit: With fresh install and only adding token the same error occurs.

Mac OS error pt 2

Reinstalled the requirements and assumed i had mistyped it but unfortunately didn't work (i even copied and pasted it) Any help would be appreciated :)
screen shot 2017-04-07 at 5 23 20 pm

[Feature Request] Redirect STDOUT and STDERR

I'd love to see a way to temporary redirect all STDOUT and STDERR to the current channel, for easier debugging. Especially when your on heroku etc, its a pain to follow their online logs.

i cant even explain this...

Whenever i run the loopself.py it just brings up a screenshotting crosshair and makes picture files called whatever it tried to import, importing works fine on its own

Can't use bot after latest updates

I've been using the selfbot without issue for awhile now, but with one of the recent updates, it does not work for me anymore. I have tried reinstalled python 3.5.2 to no avail. Here is what it does on startup:

Requirements satisfied.
Starting the bot (this may take a minute or two)...
It is not advised to run the bot as Admin.
Continuing logging in...
It is not advised to run the bot as Admin.
Continuing logging in...
Ignoring exception in on_message
Traceback (most recent call last):
  File "C:\Users\Max\AppData\Local\Programs\Python\Python35\lib\site-packages\di
scord\client.py", line 307, in _run_event
    yield from getattr(self, event)(*args, **kwargs)
  File "appuselfbot.py", line 491, in on_message
    bot.log_conf = load_log_config()
  File "F:\Software (23 GB)\Discord-Selfbot-master\cogs\utils\checks.py", line 4
1, in load_log_config
    with open('settings/log.json', 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'settings/log.json'
Ignoring exception in on_message
Traceback (most recent call last):
  File "C:\Users\Max\AppData\Local\Programs\Python\Python35\lib\site-packages\di
scord\client.py", line 307, in _run_event
    yield from getattr(self, event)(*args, **kwargs)
  File "appuselfbot.py", line 491, in on_message
    bot.log_conf = load_log_config()
  File "F:\Software (23 GB)\Discord-Selfbot-master\cogs\utils\checks.py", line 4
1, in load_log_config
    with open('settings/log.json', 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'settings/log.json'
Ignoring exception in on_message
Traceback (most recent call last):
  File "C:\Users\Max\AppData\Local\Programs\Python\Python35\lib\site-packages\di
scord\client.py", line 307, in _run_event
    yield from getattr(self, event)(*args, **kwargs)
  File "appuselfbot.py", line 491, in on_message
    bot.log_conf = load_log_config()
  File "F:\Software (23 GB)\Discord-Selfbot-master\cogs\utils\checks.py", line 4
1, in load_log_config
    with open('settings/log.json', 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'settings/log.json'
Ignoring exception in on_message
Traceback (most recent call last):
  File "C:\Users\Max\AppData\Local\Programs\Python\Python35\lib\site-packages\di
scord\client.py", line 307, in _run_event
    yield from getattr(self, event)(*args, **kwargs)
  File "appuselfbot.py", line 491, in on_message
    bot.log_conf = load_log_config()
  File "F:\Software (23 GB)\Discord-Selfbot-master\cogs\utils\checks.py", line 4
1, in load_log_config
    with open('settings/log.json', 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'settings/log.json'
Ignoring exception in on_message
Traceback (most recent call last):
  File "C:\Users\Max\AppData\Local\Programs\Python\Python35\lib\site-packages\di
scord\client.py", line 307, in _run_event
    yield from getattr(self, event)(*args, **kwargs)
  File "appuselfbot.py", line 491, in on_message
    bot.log_conf = load_log_config()
  File "F:\Software (23 GB)\Discord-Selfbot-master\cogs\utils\checks.py", line 4
1, in load_log_config
    with open('settings/log.json', 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'settings/log.json'
Ignoring exception in on_message
Traceback (most recent call last):
  File "C:\Users\Max\AppData\Local\Programs\Python\Python35\lib\site-packages\di
scord\client.py", line 307, in _run_event
    yield from getattr(self, event)(*args, **kwargs)
  File "appuselfbot.py", line 491, in on_message
    bot.log_conf = load_log_config()
  File "F:\Software (23 GB)\Discord-Selfbot-master\cogs\utils\checks.py", line 4
1, in load_log_config
    with open('settings/log.json', 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'settings/log.json'
Logged in as
Phyne_
User id:redacted
------
Ignoring exception in on_ready
Traceback (most recent call last):
  File "C:\Users\Max\AppData\Local\Programs\Python\Python35\lib\site-packages\di
scord\client.py", line 307, in _run_event
    yield from getattr(self, event)(*args, **kwargs)
  File "appuselfbot.py", line 195, in on_ready
    bot.notify = load_notify_config()
  File "F:\Software (23 GB)\Discord-Selfbot-master\cogs\utils\checks.py", line 3
5, in load_notify_config
    with open('settings/notify.json', 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'settings/notify.json'
Ignoring exception in on_message
Traceback (most recent call last):
  File "C:\Users\Max\AppData\Local\Programs\Python\Python35\lib\site-packages\di
scord\client.py", line 307, in _run_event
    yield from getattr(self, event)(*args, **kwargs)
  File "appuselfbot.py", line 491, in on_message
    bot.log_conf = load_log_config()
  File "F:\Software (23 GB)\Discord-Selfbot-master\cogs\utils\checks.py", line 4
1, in load_log_config
    with open('settings/log.json', 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'settings/log.json'
Ignoring exception in on_message
Traceback (most recent call last):
  File "C:\Users\Max\AppData\Local\Programs\Python\Python35\lib\site-packages\di
scord\client.py", line 307, in _run_event
    yield from getattr(self, event)(*args, **kwargs)
  File "appuselfbot.py", line 491, in on_message
    bot.log_conf = load_log_config()
  File "F:\Software (23 GB)\Discord-Selfbot-master\cogs\utils\checks.py", line 4
1, in load_log_config
    with open('settings/log.json', 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'settings/log.json'
Ignoring exception in on_message
Traceback (most recent call last):
  File "C:\Users\Max\AppData\Local\Programs\Python\Python35\lib\site-packages\di
scord\client.py", line 307, in _run_event
    yield from getattr(self, event)(*args, **kwargs)
  File "appuselfbot.py", line 491, in on_message
    bot.log_conf = load_log_config()
  File "F:\Software (23 GB)\Discord-Selfbot-master\cogs\utils\checks.py", line 4
1, in load_log_config
    with open('settings/log.json', 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'settings/log.json'

It seems to log in okay, but the bot is unresponsive in discord.

Bot has started to hang on "starting bot"

Bot was working fine for about a month, but now it just hangs on starting.

Tried to start from scratch and it takes you through all the steps again and hangs forever at "starting bot"

Can't react with custom emojis

I can no longer react with custom emojis, not even emojis from the current server, only with the Discord default ones. Trying to do so returns this:

AttributeError: 'Bot' object has no attribute 'get_all_emojis'

Help!

Fatal Python error: Py_Initialize: unable to load the file system codec
ImportError: No module named 'encodings'Fatal Python error: Py_Initialize: unable to load the file system codec
ImportError: No module named 'encodings'

Taking too long to start

i Dragonite pokemon image not working please help
You don't seem to have image searching configured properly. Refer to the wiki for details. ignore what my subject is about

[Feature Request] OS Execute command

I would like to request a command to execute shell commands (bash on linux/cmd on windows) to easily control your remote environment whenever you need to.

I know you can already do >py subprocess.call(command) but that just makes things complicated IMO

A embedded version of this would be neat too but also pretty timeconsuming to do so the command would be enough for most purposes :)

[Feature Request] Advanced cogs.utils.checks.get_user()

get_user() is a awesome helper function but i'd like it to search more then just the current server, if it can't find a user on the current server it should atleast try to find him on the other servers you're in and i give extra points if it can use discord.py's client.get_user_info(int(user))

smth like

def get_user(message, user, bot = None):
    try:
        member = message.mentions[0]
    except:
        member = message.server.get_member_named(user)
    if not member:
        member = message.server.get_member(user)
    if not member and bot is not None:
        for server in bot.servers:
            member = server.get_member(user)
            if member: return member
        client = discord.Client()
        @client.event
        async def on_ready():
            return client.get_user_info(int(user))
        cfg = load_log_config()
        client.run(cfg['notifier_bot_token'])
    if not member:
        return False
    return member

https://github.com/appu1232/Discord-Selfbot/blob/master/cogs/utils/checks.py#L128

Quote command issue

2017-07-30T10:23:44.002102+00:00 app[worker.1]: Ignoring exception in command quote
2017-07-30T10:23:44.002409+00:00 app[worker.1]: Traceback (most recent call last):
2017-07-30T10:23:44.002413+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.5/site-packages/discord/ext/commands/core.py", line 50, in wrapped
2017-07-30T10:23:44.002413+00:00 app[worker.1]: ret = yield from coro(*args, **kwargs)
2017-07-30T10:23:44.002414+00:00 app[worker.1]: File "/app/cogs/misc.py", line 662, in quote
2017-07-30T10:23:44.002415+00:00 app[worker.1]: length = len(self.bot.all_log[ctx.message.channel.id + ' ' + ctx.message.server.id])
2017-07-30T10:23:44.002417+00:00 app[worker.1]: AttributeError: 'NoneType' object has no attribute 'id'
2017-07-30T10:23:44.002418+00:00 app[worker.1]:
2017-07-30T10:23:44.002419+00:00 app[worker.1]: The above exception was the direct cause of the following exception:
2017-07-30T10:23:44.002420+00:00 app[worker.1]:
2017-07-30T10:23:44.002420+00:00 app[worker.1]: Traceback (most recent call last):
2017-07-30T10:23:44.002422+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.5/site-packages/discord/ext/commands/bot.py", line 846, in process_commands
2017-07-30T10:23:44.002422+00:00 app[worker.1]: yield from command.invoke(ctx)
2017-07-30T10:23:44.002423+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.5/site-packages/discord/ext/commands/core.py", line 374, in invoke
2017-07-30T10:23:44.002424+00:00 app[worker.1]: yield from injected(*ctx.args, **ctx.kwargs)
2017-07-30T10:23:44.002425+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.5/site-packages/discord/ext/commands/core.py", line 54, in wrapped
2017-07-30T10:23:44.002425+00:00 app[worker.1]: raise CommandInvokeError(e) from e
2017-07-30T10:23:44.002426+00:00 app[worker.1]: discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'NoneType' object has no attribute 'id'

This comes up when I attempt to use the quote command. Help?

Errors when starting up bot

Hello, I am having issues with this bot. I could start up this bot perfectly untill I formatted my Linux install. I got this bot back and now I get errors every time.
image
Doing sudo -H pip install -r requirements.txt comes back with
image

Thanks

the image command

when using the [prefix]i [query]

it doesnt delete the command after execution.
please fix it :)

Embedding doesn't work.

Hello, I am having issues with the embed command. I get the following error when I try to use it.

Ignoring exception in command embed
Traceback (most recent call last):
File "C:\Users\offturned\AppData\Roaming\Python\Python35\site-packages\discord\ext\commands\core.py", line 50, in wrapped
ret = yield from coro(*args, **kwargs)
File "C:\Users\offturned\Documents\Selfbot\cogs\misc.py", line 172, in embed
em = discord.Embed(timestamp=timestamp, title=title, description=description, color=int(color, 16))
ValueError: invalid literal for int() with base 16: '0xcyan'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\Users\offturned\AppData\Roaming\Python\Python35\site-packages\discord\ext\commands\bot.py", line 846, in process_commands
yield from command.invoke(ctx)
File "C:\Users\offturned\AppData\Roaming\Python\Python35\site-packages\discord\ext\commands\core.py", line 374, in invoke
yield from injected(*ctx.args, **ctx.kwargs)
File "C:\Users\offturned\AppData\Roaming\Python\Python35\site-packages\discord\ext\commands\core.py", line 54, in wrapped
raise CommandInvokeError(e) from e
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: ValueError: invalid literal for int() with base 16: '0xcyan'

time and date command raises error

when trying to do time or date command i get this error

Traceback (most recent call last):
File "C:\Users[name]\AppData\Local\Programs\Python\Python35-32\lib\site-packages\discord\ext\commands\bot.py", line 846, in process_commands
yield from command.invoke(ctx)
File "C:\Users[name]\AppData\Local\Programs\Python\Python35-32\lib\site-packages\discord\ext\commands\core.py", line 374, in invoke
yield from injected(*ctx.args, **ctx.kwargs)
File "C:\Users[name]\AppData\Local\Programs\Python\Python35-32\lib\site-packages\discord\ext\commands\core.py", line 54, in wrapped
raise CommandInvokeError(e) from e
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: KeyError: 'timezone'

Avatar command not working

Hello there! One of my friends uses your self bot, and she was trying to get the avatar rotation command to work. When she claimed that it was not working I decided to look into it for her. But whenever the bot attempted to change her avatar I got this error;
image
(this picture is actually the second trial, but both errors where the same.)
I tried reinstalling a new version of the bot and running it on another account, but I got the same error. The password was correct on both trials, and I tried all three of these times for the delay (in seconds); 1800, 2000, 7250. And the self bot is fully updated.
I have not gone and edited the named file location because I am not that great with programming yet.
Would someone tell me what I need to change/edit in order to get this commands working? Thanks in advance!

[Feature Request] Make the logger more useful

Let the user subscribe to several Logger events to get notified when for example:

  • your nickname was changed on one of the servers
  • a server disappeared from your serverlist
  • your role on one of your servers changed
  • etc etc

Mac OS error

when i run "python loopself.py" into the cmd on MacOS sierra in the terminal in the folder after installing "pip -r install requirements.txt" i get this in the terminal. it just repeats for ever. Your bot is very good and i am looking forward to using after this silly error goes away. I have modified config.json and everything else and installed python for mac os. anything would help ;)
screen shot 2017-04-05 at 9 24 32 pm

[Suggestions/Issues] Things found that could be changed

  • loopself.py should be intergrated into appuselfbot.py
  • why set the directory as a git clone in run.bat
  • errorst in run.bat are too vague
  • part of run.bat is very badly written.
    For example Line 34
  • text shouldnt be stored on the root directory
  • import * is bad for mulitple reasons for example it puts a lot of stuff into your namespace
  • make cogs optional so lessen the needed requirements
    I would suggest making them silently fail with a small error to notify the user
  • allow for plain github repo download but with a warning
  • json files in settings can be generated and dont need to preexist
  • allowing the user to input a token if none is given

There are probably more but these are the ones I find the most notable from a dev and user endpoint
(I will check these off if the feature has been added / Issue been resolved)

Not working on Raspberry Pi 3 - Raspbian PIXEL

When trying to install the requirements, I get this:

 In file included from src/lxml/lxml.etree.c:515:0:
    src/lxml/includes/etree_defs.h:14:31: fatal error: libxml/xmlversion.h: No such file or directory
     #include "libxml/xmlversion.h"
                                   ^
    compilation terminated.
    Compile failed: command 'gcc' failed with exit status 1
    creating tmp
    cc -I/usr/include/libxml2 -c /tmp/xmlXPathInit1be45_qt.c -o tmp/xmlXPathInit1be45_qt.o
    /tmp/xmlXPathInit1be45_qt.c:1:26: fatal error: libxml/xpath.h: No such file or directory
     #include "libxml/xpath.h"
                              ^
    compilation terminated.
    *********************************************************************************
    Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
    *********************************************************************************
    error: command 'gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/local/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-1tsdvukb/lxml/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-n24km37v-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-1tsdvukb/lxml/

I used the command pip3 install --user -r requirements.txt both with sudo and without sudo, because the run_linuxmac.sh file didn't work either:
WITHOUT SUDO:

pi@rpi3:~/DISCORD_SELF_BOT $ ./run_linuxmac.sh
./run_linuxmac.sh: line 1: $'\r': command not found
./run_linuxmac.sh: line 2: $'\r': command not found
Warning: this script is still an alpha, expect bugs
./run_linuxmac.sh: line 4: $'\r': command not found
./run_linuxmac.sh: line 5: syntax error near unexpected token `$'{\r''
'/run_linuxmac.sh: line 5: `updater () {

WITH SUDO:

pi@rpi3:~/DISCORD_SELF_BOT $ sudo ./run_linuxmac.sh
: not foundmac.sh: 1: ./run_linuxmac.sh:
: not foundmac.sh: 2: ./run_linuxmac.sh:
Warning: this script is still an alpha, expect bugs
: not foundmac.sh: 4: ./run_linuxmac.sh:
Starting auto-update
./run_linuxmac.sh: 131: ./run_linuxmac.sh: Syntax error: "elif" unexpected (expecting "then")

I only got this far when I deleted the #!/bin/bash line.
With #!/bin/bash:

pi@rpi3:~/DISCORD_SELF_BOT $ ./run_linuxmac.sh
-bash: ./run_linuxmac.sh: /bin/bash^M: bad interpreter: No such file or directory
  • I know that it is still in Alpha, but I thought that I'd report this issue anyway.
  • I think that the APIs maybe not compatible with Raspberry Pi

It would be really cool if it would be possible to run the selfbot script on Raspberry Pi too, because then I would be able to keep it running 24/7 and wouldn't have to start it manually every time I want to use it (or add it to the Windows startup folder (I'm a Windows user)). Also then I would be able to use it without having to keep my pc running.

Thank you for your response, I hope I included everything and sorry for my bad English.

All google commands don't work, and mal commands don't work when the bot is hosted on Heroku.

Everytime I trigger the command >g and >i, the console responds:

 No LSB modules are available.
 Ignoring exception in command g
   File "/app/.heroku/python/lib/python3.5/site-packages/discord/ext/commands/core.py", line 50, in wrapped
 Traceback (most recent call last):
   File "/app/cogs/google.py", line 24, in parse_google_card
     ret = yield from coro(*args, **kwargs)
     calculator = node.find(".//table/tr/td/span[@class='nobr']/h2[@class='r']")
   File "/app/cogs/google.py", line 160, in g

     card = self.parse_google_card(card_node)
 The above exception was the direct cause of the following exception:
 AttributeError: 'int' object has no attribute 'find'
 Traceback (most recent call last):

     yield from injected(*ctx.args, **ctx.kwargs)
   File "/app/.heroku/python/lib/python3.5/site-packages/discord/ext/commands/bot.py", line 846, in process_commands
   File "/app/.heroku/python/lib/python3.5/site-packages/discord/ext/commands/core.py", line 54, in wrapped
     yield from command.invoke(ctx)
   File "/app/.heroku/python/lib/python3.5/site-packages/discord/ext/commands/core.py", line 374, in invoke
 discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'int' object has no attribute 'find'
     raise CommandInvokeError(e) from e

I separated the mal question since I think the mal command has to save the results to storage and return the results or something idk

New Update

Woops, error fixed. How do I delete this... ;-;

[Feature Request] Helper functions for API endpoints not included in discord.py

Some example might be

    def block_user(self, id):
        payload = {
            'user-agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) discord/0.0.157 Chrome/58.0.3029.110 Discord Canary/1.7.1 Safari/537.36',
            # 'authority': 'canary.discordapp.com',
            'authorization': os.environ['TOKEN']
        }
        r = requests.put("https://canary.discordapp.com/api/v6/users/@me/relationships/"+id, data=payload)
        msg = "Requested https://canary.discordapp.com/api/v6/users/@me/relationships/"+id
        msg += "\nStatus: %s" % r.status_code
        msg += "\nContent: %s" % r.content
        return msg
    def unblock_user(self, id):
        payload = {
            'user-agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) discord/0.0.157 Chrome/58.0.3029.110 Discord Canary/1.7.1 Safari/537.36',
            # 'authority': 'canary.discordapp.com',
            'authorization': os.environ['TOKEN']
        }
        r = requests.delete("https://canary.discordapp.com/api/v6/users/@me/relationships/"+id, data=payload)
        msg = "Requested https://canary.discordapp.com/api/v6/users/@me/relationships/"+id
        msg += "\nStatus: %s" % r.status_code
        msg += "\nContent: %s" % r.content
        return msg

Unicode errors in name when logging in [fixed]

IDK what's these errors

Logged in as
Ignoring exception in on_ready
Traceback (most recent call last):
  File "C:\Users\Kyle\AppData\Local\Programs\Python\Python35\lib\site-packages\discord\client.py", line 307, in _run_event
    yield from getattr(self, event)(*args, **kwargs)
  File "appuselfbot.py", line 29, in on_ready
    print(bot.user.name)
  File "C:\Users\Kyle\AppData\Local\Programs\Python\Python35\lib\encodings\cp437.py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_map)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 0-1: character maps to <undefined>
Ignoring exception in on_message
Traceback (most recent call last):
  File "C:\Users\Kyle\AppData\Local\Programs\Python\Python35\lib\site-packages\discord\client.py", line 307, in _run_event
    yield from getattr(self, event)(*args, **kwargs)
  File "appuselfbot.py", line 148, in on_message
    if message.channel.id not in bot.self_log:
  File "C:\Users\Kyle\AppData\Local\Programs\Python\Python35\lib\site-packages\discord\client.py", line 296, in __getattr__
    raise AttributeError(msg.format(self.__class__, name))
AttributeError: '<class 'discord.ext.commands.bot.Bot'>' object has no attribute 'self_log'
Ignoring exception in on_message
Traceback (most recent call last):
  File "C:\Users\Kyle\AppData\Local\Programs\Python\Python35\lib\site-packages\discord\client.py", line 307, in _run_event
    yield from getattr(self, event)(*args, **kwargs)
  File "appuselfbot.py", line 148, in on_message
    if message.channel.id not in bot.self_log:
  File "C:\Users\Kyle\AppData\Local\Programs\Python\Python35\lib\site-packages\discord\client.py", line 296, in __getattr__
    raise AttributeError(msg.format(self.__class__, name))
AttributeError: '<class 'discord.ext.commands.bot.Bot'>' object has no attribute 'self_log'
Ignoring exception in on_message
Traceback (most recent call last):
  File "C:\Users\Kyle\AppData\Local\Programs\Python\Python35\lib\site-packages\discord\client.py", line 307, in _run_event
    yield from getattr(self, event)(*args, **kwargs)
  File "appuselfbot.py", line 148, in on_message
    if message.channel.id not in bot.self_log:
  File "C:\Users\Kyle\AppData\Local\Programs\Python\Python35\lib\site-packages\discord\client.py", line 296, in __getattr__
    raise AttributeError(msg.format(self.__class__, name))
AttributeError: '<class 'discord.ext.commands.bot.Bot'>' object has no attribute 'self_log'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.