Skip to content

A free discord bot to call the respawn time of wars in the NEW WORLD game.

License

Notifications You must be signed in to change notification settings

BigChicChicken/NW_TimerBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NW_Timerbot

A free discord bot to call the respawn time of wars in the NEW WORLD game.

Installation

Install FFmpeg

Install Python

Install NodeJs

Install Yarn

Download/Clone this repository.


Step by step for Windows

Configuration

In the .env update values with your data, like the example.

Under BOTS, you will have to define:

  • name: The name of the bot, used to create an associated log file.
  • lang: Choose the bot voice language. (available fr|en)
  • token: The token to connect to your discord api bot. Dev Portal
  • voiceChannelId: The id of the channel where the bot connects.
  • textChannelId: The id of the channel where the control buttons will be sent.

Under MASTER_BOT, you will have to define:

  • token: The token to connect to your discord api bot. Dev Portal
  • textChannelId: The id of the channel where the control buttons will be sent.

Exemple:

BOTS: '[
    {
        "name":"MyFirstBot",
        "lang": "en",
        "token":"my_first_bot_key",
        "voiceChannelId":"my_first_voice_channel_id",
        "textChannelId":"my_text_channel_id"
    },
    {
        "name":"MySecondBot",
        "lang": "en",
        "token":"my_second_bot_key",
        "voiceChannelId":"my_second_voice_channel_id",
        "textChannelId":"my_text_channel_id"
    }
]'
MASTER_BOT: '{
    "token":"my_master_bot_key",
    "textChannelId": "my_text_channel_id"
}'

USAGE

Under the root folder of this repository, launch the following commands:

  • yarn install : Install all necessary dependencies.
  • yarn prod : Turn on bots.

Now the bots are ready to help you win your future wars. ⚔️

HOW IT'S WORK ?

The bot uses the clock of the system where it is hosted, so it will be necessary to check that the system is synchronized.

A war are always in a 30 min slot, like 8:30-9:00 or 10:00-10:30. From this information the bot will be able to automatically determine the time slot when it is launched (example if you launch it at 9:42, the slot will be 9:30-10:00).

Then it will automatically adjust the respawn time according to the progress of the war.

You can therefore launch it at any time:

  • Before the war
  • During the war
  • And even launch it again during the war

Warning: It may happen that the New World servers have a desynchronization with real time, so there may be false respawns from time to time.

All respawning times are visible from the config file.

License

This is completely free and released under the MIT License.

About

A free discord bot to call the respawn time of wars in the NEW WORLD game.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published