appu1232 / discord-selfbot Goto Github PK
View Code? Open in Web Editor NEWDiscord selfbot made with Python using discord.py
License: GNU General Public License v3.0
Discord selfbot made with Python using discord.py
License: GNU General Public License v3.0
You updated the code and now it isnt working for anyone.
I just spent 15 minutes fixing this.
https://github.com/appu1232/Discord-Selfbot/blob/master/appuselfbot.py#L25
remove that [0] please
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)
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!
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>
Currently the bot prefix is very static in most of the help messages and other. Maybe make a small helper function like
def parse_prefix(text):
cfg = load_config()
return text.replace("{p}", cfg["bot_prefix"])
and use that whenever possible just to get the prefix right :D
One way to run the bot on startup without seeing cmd it to convert run.bat to an exe then include a .vbs file that when ran, it starts run.exe as a hidden program.
Link to .exe - https://github.com/Benji-13/Selfbotfiles/blob/master/run.exe
Link to .vbs - https://github.com/Benji-13/Selfbotfiles/blob/master/runhidden.vbs
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.
Is there a way to run this without having cmd open? Currently if I close it then the bot will stop.
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
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
It worked until today, now it always return No result or Command raised an exception: KeyError: 'items'
with >mal char
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.
if there a feature where if someone mentions me it says I'm afk and i can set a reason?
I want to put field in the embed but it doesn't wanna work
I want to put this in the field:
Invite:
Click Here
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.
Coming from Teamspeak this almost feels essential (https://www.myteamspeak.com/addons/a5a52764-94b2-4ef2-8bf9-93eae3b0f523)
Vortex has such a feature for example: https://github.com/jagrosh/Vortex/blob/master/src/vortex/commands/MagnetCmd.java#L100
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
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 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"
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'
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'
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
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 :)
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
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?
when using the [prefix]i [query]
it doesnt delete the command after execution.
please fix it :)
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'
#46 could help with that
API endpoint: https://canary.discordapp.com/api/v6/guilds/SERVERID/ack
Example "cog download https://github.com/PhazonicRidley/Assistance-Links/raw/master/assistance_links.py"
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'
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;
(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!
Let the user subscribe to several Logger events to get notified when for example:
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 ;)
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)
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
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.
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
So what's the fastest way for me personally to change it by editing the source?
I really want to change it.
Woops, error fixed. How do I delete this... ;-;
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
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'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.