jerbob / groupme-discord Goto Github PK
View Code? Open in Web Editor NEWSync a Discord channel with a GroupMe chat seamlessly.
Sync a Discord channel with a GroupMe chat seamlessly.
I'm not very experienced with python, which is probably attributing to my problems. I am currently unable to get past the final step, where I run the "python3 main.py" command. I know nothing about flasks, and am struggling to understand them in trying to look them up. This is the error that is being thrown:
Traceback (most recent call last):
File "main.py", line 3, in
import web_server
File "/home/user/groupme-discord/web_server.py", line 7, in
from flask import Flask, request
ModuleNotFoundError: No module named 'flask'
As extra context, I am operating on a Linux virtual machine. I have also gone the ngrok route regarding flasks. I have the forwarding link from ngrok as the callback URL, and ran the command "./ngrok http 5000"
Any insight for fixing my errors would be greatly appreciated!
Trying to run it on linux. Everything else installed without a hitch, however, got an issue with Discord token. Token copy pasted into config.ini
* Serving Flask app "web_server" (lazy loading)
* Environment: production
WARNING: Do not use the development server in a production environment.
Use a production WSGI server instead.
* Debug mode: off
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
Task exception was never retrieved
future: <Task finished coro=<Client.run.<locals>.runner() done, defined at /home/daniel/.local/lib/python3.6/site-packages/discord/client.py:545> exception=LoginFailure('Improper token has been passed.',)>
Traceback (most recent call last):
File "/home/daniel/.local/lib/python3.6/site-packages/discord/http.py", line 258, in static_login
data = await self.request(Route('GET', '/users/@me'))
File "/home/daniel/.local/lib/python3.6/site-packages/discord/http.py", line 222, 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 "/home/daniel/.local/lib/python3.6/site-packages/discord/client.py", line 547, in runner
await self.start(*args, **kwargs)
File "/home/daniel/.local/lib/python3.6/site-packages/discord/client.py", line 510, in start
await self.login(*args, bot=bot)
File "/home/daniel/.local/lib/python3.6/site-packages/discord/client.py", line 376, in login
await self.http.static_login(token, bot=bot)
File "/home/daniel/.local/lib/python3.6/site-packages/discord/http.py", line 262, in static_login
raise LoginFailure('Improper token has been passed.') from exc
discord.errors.LoginFailure: Improper token has been passed.
First up, thanks for this amazing bridge between groupme and discord.
I was wondering if it's possible to make it run on not port 5000 so that it would be possible to get multiple instances of this. If so, is that a simple change?
I must say right away I have 0 knowledge when it comes to Python. I followed all directions. Went with ngrok option to expose webserver. I constantly get this error. What could be causing it? Running it on windows10 machine.
C:\discord2groupme>py main.py
Traceback (most recent call last):
File "main.py", line 14, in <module>
discord_bot.main()
File "C:\discord2groupme\discord_bot.py", line 99, in main
Process(target=bot.run, args=(BOT_TOKEN,)).start()
File "C:\Python\lib\multiprocessing\process.py", line 112, in start
self._popen = self._Popen(self)
File "C:\Python\lib\multiprocessing\context.py", line 223, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
File "C:\Python\lib\multiprocessing\context.py", line 320, in _Popen
return Popen(process_obj)
File "C:\Python\lib\multiprocessing\popen_spawn_win32.py", line 94, in __init__
reduction.dump(process_obj, to_child)
File "C:\Python\lib\multiprocessing\reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
AttributeError: Can't pickle local object 'WeakSet.__init__.<locals>._remove'
C:\discord2groupme>Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Python\lib\multiprocessing\spawn.py", line 102, in spawn_main
source_process = _winapi.OpenProcess(
OSError: [WinError 87] The parameter is incorrect
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.