- Readme is outdated. Information is missing. Will be udpated soon
The Dezentralschweiz Bot is a Telegram bot designed to provide users with information about upcoming meetups in the Dezentralschweiz community. It fetches events from various relays using the Nostr protocol and displays them in a user-friendly format.
- Fetch Upcoming Meetups: Use the
/meetups
command to retrieve a list of upcoming events. - Event Details: Get detailed information about each event, including the name, date, time, and location.
- Direct Links: Access direct links to event pages for more information.
- Community Links: Use the
/links
command to view important community resources and links. - Suggest Events: Use the
/event_vorschlagen
command to suggest new events for the community. - Admin Approval: Suggested events are sent to admins for approval before being published.
- Automatic Calendar Updates: Approved events are automatically added to the community calendar.
For feature requests or bug reports, please use one of the following methods:
- GitHub: Open an issue in this repository.
- Telegram: Contact @g1ll0hn3r.
- Nostr: Reach out via Nostr (https://njump.me/riginode.xyz)
To set up the Dezentralschweiz Bot, follow these steps:
-
Clone the Repository
git clone https://github.com/gillohner/dezentralschweiz_bot.git cd dezentralschweiz-bot
-
Install Dependencies
npm install
-
Configure Environment Variables
Configure Environment Variables Create a .env file in the root directory of your project and add the following environment variables:
TELEGRAM_BOT_TOKEN=your_telegram_bot_token_here NADDR_LIST=comma_separated_list_of_event_kinds_31924 DEFAULT_RELAYS=wss://nos.lol,wss://relay.damus.io,wss://relay.nostr.band,wss://relay.riginode.xyz ADMIN_CHAT_ID=your_admin_chat_id_here BOT_NSEC=your_bot_private_key_here EVENT_CALENDAR_NADDR=your_event_calendar_naddr_here
-
Run the Bot
node bot.js
- Start a chat with your bot on Telegram.
- Use /start to receive a welcome message.
- Use /meetups to fetch and display upcoming meetups.
- Admins can approve or reject suggested events through the admin chat.
- Approved events are automatically added to the community calendar and published to Nostr relays
Contributions to the Dezentralschweiz Bot are welcome! Please feel free to submit pull requests or open issues for any improvements or bug fixes.
Intelectual property is a joke. Do whatever the fuck you want with this.