Avorion

Avorion

Avorion Announcer
29 Comments
Martin8883 8 May @ 11:38pm 
@Black_Plauge: Discord.py update from 1.x to 2.x broke compatibility. You could either fall back to Discord.py 1.7.7 or change file /workshop/content/445220/2032319866/avorion-announcer.py

from this
[code]
178 # Bot
179 print("Discord API version: {0}".format(discord.__version__))
180 bot = commands.Bot(command_prefix = settings['command-prefix'] + ' ', description = 'A bot that connects an Avorion game server and a Discord server.')
[/code]

to this
[code]
178 # Bot
179 print("Discord API version: {0}".format(discord.__version__))
180 # 20250509 Martin, compatibility to Discord.py 2.* >>>
181 intents = discord.Intents.default()
182 intents.message_content = True
183 bot = commands.Bot(command_prefix = settings['command-prefix'] + ' ', description = 'A bot that connects an Avorion game server and a Discord server.', intents=intents)
184 # <<<
[/code]

Regards Martin
Black_Plauge 16 Mar @ 4:43am 
Hi there! i was wondering if this can be updated ? it doesn't work because the intent is ? different now days i think. if not no worries!
David 27 Aug, 2024 @ 10:28pm 
Hi, every time i try to set the channel type i have the same error : es

!announcer setchannel [admin]

Something went wrong :/

i don't understand the problem
Rinart73  [author] 4 May, 2024 @ 3:41am 
OriginalLordDrow, aw thank you :)
WhiskerstheClockworkCat 3 May, 2024 @ 3:58pm 
Thanks for developing this, Rinart. You are a legend. brother.
Kein bOck 20 Mar, 2023 @ 2:48am 
Net.Core 5,6,7 are all stable!
It is also possible to do this with PERL.

For Net and Perl there are Discord-projects on GIT-hub that work.
YouTube.com/StoneLegion 16 Feb, 2023 @ 5:08am 
Is there an alternative like C# or anything but Phyton?
Kein bOck 2 Feb, 2023 @ 12:12am 
I'ts ok.
In my experience, phyton is not stable enough. Every update brings new problems with modules that no longer work.
Rinart73  [author] 27 Jan, 2023 @ 11:01am 
Kein bOck, C# struggled with Linux for a while. Sure there is Mono, but still, it's an additional hassle to use a compiled language for a cross-platform solution, while I needed something that is quick to develop and works ok. Perl is not better than Python. Python is more popular and actually has a proper Discord library unlike Perl.
Kein bOck 14 Jan, 2023 @ 7:06pm 
Perl or C# core
Rinart73  [author] 3 Jan, 2023 @ 10:34am 
Kein bOck, well I needed some tool to make the Discord bot because it's not possible to do from Avorion itself. I had to choose between Python or NodeJS. If you think you can achieve a better result - feel free to.
Kein bOck 26 Dec, 2022 @ 6:06am 
Worst concept with Python!
:steamthumbsdown:
RogueRaiden 5 Aug, 2022 @ 12:50pm 
Thanks for the response! Yes, I have found that no mod with configs will read/write and I cannot figure it out. I have changed my --datapath, set permissions for all the folders and some other things. I am using the Pterodactyl panel on Ubuntu.
Rinart73  [author] 5 Aug, 2022 @ 5:20am 
"Error calling checkWriteSecureFilename: Could not find a suitable directory for saving files." "Error finding home directory: getpwuid(getuid()) returned NULL" - These 2 erros are most likely connected. Avorion can't detect you user home directory and as a result any mod with configs won't work. This is not announcer issue.
RogueRaiden 2 Jul, 2022 @ 1:40pm 
btw i can get the script to launch and login to the discord bot, but the Avorion server itself is producing the errors.
"Error finding home directory: getpwuid(getuid()) returned NULL"
RogueRaiden 2 Jul, 2022 @ 1:30pm 
Trying to install this and keep getting
"Error calling checkWriteSecureFilename: Could not find a suitable directory for saving files."
anytime I launch the server. not sure what to change to get working
Semipara//el 7 Jul, 2021 @ 3:28pm 
No i had 1. the old Version of AzimuthLib and 2. the new Version installed. Its working now. thx
Rinart73  [author] 7 Jul, 2021 @ 2:47pm 
"look for older versions of the libary mod" Wait so you're saying it doesn't work for you with current AzimuthLib? Why? Which game version are you running?
Semipara//el 7 Jul, 2021 @ 4:19am 
Oke nevermidn for other eventualy good to know :p look for older versions of the libary mod and look that you dont have both on the server installed sorry Rinart73 great work :P
Semipara//el 7 Jul, 2021 @ 1:23am 
Hey is it possible that its not working probably anymore, one the newest Version? When i install it, Server wont start anymore. Thanks in advance woud like to see this mod on my server *.*
Ki-Tan 4 Jan, 2021 @ 3:49am 
Yup, I got it all working
Rinart73  [author] 4 Jan, 2021 @ 3:27am 
No, just write the setchannel command in the channel you want to assign.
Ki-Tan 2 Jan, 2021 @ 10:56am 
Got bot to make file but unsure about how to set channel is it ID?
Ki-Tan 2 Jan, 2021 @ 10:00am 
So directly running and running as a service the settings file is not generating at the location stated in config files locations but asks but token as last message
Rinart73  [author] 30 Nov, 2020 @ 3:06am 
You'll have to run the bot on the same machine as the server. So bascially you need a hoster that allows to run custom software.
Draxima 8 Nov, 2020 @ 1:36pm 
How do you run this with a server being hosted else were? Like Nitrado
Rinart73  [author] 13 Jul, 2020 @ 12:01pm 
Updated to 1.1.2
Rinart73  [author] 23 Mar, 2020 @ 7:59pm 
KaneNOD, Thank you :)
KaneNOD 23 Mar, 2020 @ 3:13pm 
Nice mod Rinart!! Subscribed, liked and favorited!