Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion:Adding multi bot example to example folder #53

Closed
marloweoliver opened this issue Apr 28, 2021 · 2 comments
Closed

Suggestion:Adding multi bot example to example folder #53

marloweoliver opened this issue Apr 28, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@marloweoliver
Copy link

Basically, it would probably really help people just learning how to use discum if there was an example of how to implement the multi token concepts referenced in issue #22 and #36. I personally could not use the code provided in issue #22 and had to work around it.

Thanks,
Callihan


edit here

@marloweoliver
Copy link
Author

The issue is that it returns the error AttributeError: 'list' object has no attribute 'sendMessage'

@marloweoliver
Copy link
Author

marloweoliver commented Apr 28, 2021

Using the code described in #22


arandomnewaccount:
The only thing the example in #22 does is put the discum client objects in a list so that you can access them from one spot.
What you're probably doing wrong is you're trying to do clients.sendMessage but clients is a list of discum client objects. So, instead, you'd have to do clients[0].sendMessage or whatever index you're using. I'll add an example maybe sometime this weekend when I get some time.

edit: added an example:
https://github.com/Merubokkusu/Discord-S.C.U.M/blob/master/examples/multibots.py

closing this issue now

@marloweoliver marloweoliver changed the title Adding multi bot example to example folder Suggestion:Adding multi bot example to example folder Apr 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants
@marloweoliver and others