Casper is a Discord bot tailor made specifically for the Frost Hacks server, Its primary function is to warmly greet new users joining the server and create an engaging environment through welcoming messages.
Upon a new user joining the server, Casper welcomes them with a personalized message in the system channel, expressing excitement about their presence within the Frost Hacks community.
- On Ready Event: Casper notifies its online status upon successful connection to the Discord server.
- On Member Join Event: Welcomes new members to the server with a randomly selected personalized greeting message from a predefined list.
To set up Casper for your Discord server:
- Clone this repository.
- Install the necessary dependencies.
- Replace the placeholder value for
token
in thecreds.py
file with your bot token. - Ensure Casper has appropriate permissions within your Discord server.
- Run the bot.
Feel free to customize the list of welcome messages to suit your server's tone and community better. You can modify the messages within the welcome_messages
list in the code.
Run the bot by executing the Python script:
python bot.py
Ensure your bot has the necessary intents enabled, especially intents.members
, to correctly
5265
handle member join events.
Casper makes use of the Discord.py library to interact with Discord APIs.