Crosschat - A bot for cross-server communication

Overview

CrossChat

A bot for cross-server communication.

Running the bot

To run the bot you will need Poetry, a database (MySQL, SQLite, Postgres, MariaDB), and optionally Redis. If Redis is not configured in your .env file the bot will use an in-memory fakeredis instance.

poetry install
DB_URI=<your db uri> poetry run alembic upgrade head
poetry run task start
Comments
  • feat: add the reference message's URL

    feat: add the reference message's URL

    When a message is replied to, the embed author will have a redirect URL that leads to the URL of the message that was replied to.

    Has not been tested.

    opened by toolifelesstocode 2
  • bug: can't delete a crosschat channel

    bug: can't delete a crosschat channel

    Command

    /channels delete name: development

    Traceback

    crosschat    | Ignoring exception in on_slash_command_error
    crosschat    | Traceback (most recent call last):
    crosschat    |   File "/root/.cache/pypoetry/virtualenvs/crosschat-TFcQMFAJ-py3.10/lib/python3.10/site-packages/disnake/ext/commands/slash_core.py", line 274, in invoke
    crosschat    |     await call_param_func(self.callback, inter, self.cog, **kwargs)
    crosschat    |   File "/root/.cache/pypoetry/virtualenvs/crosschat-TFcQMFAJ-py3.10/lib/python3.10/site-packages/disnake/ext/commands/params.py", line 678, in call_param_func
    crosschat    |     return await maybe_coroutine(safe_call, function, **kwargs)
    crosschat    |   File "/root/.cache/pypoetry/virtualenvs/crosschat-TFcQMFAJ-py3.10/lib/python3.10/site-packages/disnake/utils.py", line 555, in maybe_coroutine
    crosschat    |     return await value
    crosschat    |   File "/bot/src/exts/control/admin.py", line 65, in delete_channel
    crosschat    |     channel = await Channel.get(name=name)
    crosschat    |   File "/root/.cache/pypoetry/virtualenvs/crosschat-TFcQMFAJ-py3.10/lib/python3.10/site-packages/ormar/models/metaclass.py", line 649, in __getattr__
    crosschat    |     return object.__getattribute__(self, item)
    crosschat    | AttributeError: 'ModelMetaclass' object has no attribute 'get'
    crosschat    |
    crosschat    | The above exception was the direct cause of the following exception:
    crosschat    |
    crosschat    | Traceback (most recent call last):
    crosschat    |   File "/root/.cache/pypoetry/virtualenvs/crosschat-TFcQMFAJ-py3.10/lib/python3.10/site-packages/disnake/client.py", line 515, in _run_event
    crosschat    |     await coro(*args, **kwargs)
    crosschat    |   File "/bot/src/exts/errors.py", line 15, in on_slash_command_error
    crosschat    |     await self.handle_interaction_error(itr, error)
    crosschat    |   File "/bot/src/exts/errors.py", line 36, in handle_interaction_error
    crosschat    |     raise error
    crosschat    |   File "/root/.cache/pypoetry/virtualenvs/crosschat-TFcQMFAJ-py3.10/lib/python3.10/site-packages/disnake/ext/commands/interaction_bot_base.py", line 1346, in process_application_commands
    crosschat    |     await app_command.invoke(interaction)
    crosschat    |   File "/root/.cache/pypoetry/virtualenvs/crosschat-TFcQMFAJ-py3.10/lib/python3.10/site-packages/disnake/ext/commands/slash_core.py", line 579, in invoke
    crosschat    |     await self.invoke_children(inter)
    crosschat    |   File "/root/.cache/pypoetry/virtualenvs/crosschat-TFcQMFAJ-py3.10/lib/python3.10/site-packages/disnake/ext/commands/slash_core.py", line 564, in invoke_children
    crosschat    |     await subcmd.invoke(inter, **kwargs)
    crosschat    |   File "/root/.cache/pypoetry/virtualenvs/crosschat-TFcQMFAJ-py3.10/lib/python3.10/site-packages/disnake/ext/commands/slash_core.py", line 283, in invoke
    crosschat    |     raise CommandInvokeError(exc) from exc
    crosschat    | disnake.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'ModelMetaclass' object has no attribute 'get'
    
    opened by onerandomusername 1
  • feat: add stickers

    feat: add stickers

    Forwards stickers as images, instead of trying (and failing) to send an empty message. End result looks like this, not sure about the title but it'd be nice to have some way of telling apart stickers and image attachments: image

    opened by shiftinv 0
  • automod support

    automod support

    once the api is public for bots, crosschat should cache and do local filtering before sending via webhook in the guild.

    reason: One guild in the channels may not filter the same words or phrases that the other guild does.

    opened by onerandomusername 0
  • Image Support

    Image Support

    Suggestion

    Embed images/attachments when replying to another member. Currently, when a member replies to a message that has an image attached on to it, the image won't be inside the embed that got sent to the other server.

    opened by sifte 0
Owner
Python programmer in Wales working on Discord bots. Staff @python-discord, @gtaodiscord
null
A discord Server Bot made with Python, This bot helps people feel better by inspiring them with motivational quotes or by responding with a great message, also the users of the server can create custom messages by telling the bot with Commands.

A discord Server Bot made with Python, This bot helps people feel better by inspiring them with motivational quotes or by responding with a great message, also the users of the server can create custom messages by telling the bot with Commands.

Aran 1 Oct 13, 2021
A secure and customizable bot for controlling cross-server announcements and interactions within Discord

DiscordBot A secure and customizable bot for controlling cross-server announcements and interactions within Discord. Within the code of the bot, you c

Jacob Dorfmeister 1 Jan 22, 2022
Automated JSON API based communication with Fronius Symo

PyFronius - a very basic Fronius python bridge A package that connects to a Fronius device in the local network and provides data that is provided via

Niels Mündler 10 Dec 30, 2022
A bot to get Statistics like the Playercount from your Minecraft-Server on your Discord-Server

Hey Thanks for reading me. Warning: My English is not the best I have programmed this bot to show me statistics about the player numbers and ping of m

spaffel 12 Sep 24, 2022
Automate TikTok follower bot, like bot, share bot, view bot and more using selenium

Zefoy TikTok Automator Automate TikTok follower bot, like bot, share bot, view bot and more using selenium. Click here to report bugs. Usage Download

null 555 Dec 30, 2022
A Dm Bot, also knows as Mass DM bot which can send one message to All of the Users in a Specific Server!

Discord DM Bot discord.py 1.7.2 python 3.9.5 asyncio 3.4.3 Installation Cloud Host Tutorial uploaded in YouTube, watch it by clicking here. Local Host

hpriyam8 7 Mar 24, 2022
WallAlley.bot is an open source and free to use financial discord bot originaly build for WallAlley server's community

WallAlley.bot About WallAlley.bot is an open source and free to use financial discord bot originaly build for WallAlley server's community. All data a

Mohammad KHADDAN 1 Jan 22, 2022
Source code of BobuxAdmin bot from Bobux Bot Development server.

BobuxAdmin Source code of BobuxAdmin bot from Bobux Bot Development server. The bot is written with usage of disnake and SQLite database. Functionalit

Bobux Bot Developers 3 Dec 29, 2022
This Server Cloner can clone the server you want with all the perms of roles in every particular channel.

Server-Cloner-with-perms ?? This Server Cloner can clone the server you want with all the perms of roles in every particular channel. Features Clone C

Gripz 0 Feb 17, 2022
A Discord Server Cloner Which Can Clone Any Discord Server In Just Few Minutes

A Discord Server Cloner Which Can Clone Any Discord Server In Just Few Minutes.

samet 4 Jul 23, 2022
Dns-Client-Server - Dns Client Server For Python

Dns-client-server DNS Server: supporting all types of queries and replies. Shoul

Nishant Badgujar 1 Feb 15, 2022
A free, minimal, lightweight, cross-platform, easily expandable Twitch IRC/API bot.

parky's twitch bot A free, minimal, lightweight, cross-platform, easily expandable Twitch IRC/API bot. Features ?? Connect to Twitch IRC chat! ?? Conn

Andreas Schneider 10 Dec 30, 2022
(@Tablada32BOT is my bot in twitter) This is a simple bot, its main and only function is to reply to tweets where they mention their bot with their @

Remember If you are going to host your twitter bot on a page where they can read your code, I recommend that you create an .env file and put your twit

null 3 Jun 4, 2021
Simple bot to receive feedback,same as livegram bot but with more features & full control over bot

Kontak Simple bot to receive feedback,same as livegram bot but with more features & full control over bot Deploy to VPS

Mahin Ahmed 2 Dec 16, 2021
Easy & powerful bot to check if your all Telegram bots are working or not. This bot status bot updates every 45 minutes & runs for 24x7 hours.

PowerfulBotStatus-IDN-C-X Easy & powerful bot to check if your all Telegram bots are working or not. This bot status bot updates every 45 minutes & ru

IDNCoderX 5 Oct 6, 2022
Bagas Mirror&Leech Bot is a multipurpose Telegram Bot written in Python for mirroring files on the Internet to our beloved Google Drive. Based on python-aria-mirror-bot

- [ MAYBE UPDATE & ADD MORE MODULE ] Bagas Mirror&Leech Bot Bagas Mirror&Leech Bot is a multipurpose Telegram Bot written in Python for mirroring file

null 4 Nov 23, 2021
Aqui está disponível GRATUITAMENTE, um bot de discord feito em python, saiba que, terá que criar seu bot como aplicação, e utilizar seu próprio token, e lembrando, é um bot básico, não se utiliza Cogs nem slash commands nele!

BotDiscordPython Aqui está disponível GRATUITAMENTE, um bot de discord feito em python, saiba que, terá que criar seu bot como aplicação, e utilizar s

Matheus Muguet 4 Feb 5, 2022
Sunflower-farmers-automated-bot - Sunflower Farmers NFT Game automated bot.IT IS NOT a cheat or hack bot

Sunflower-farmers-auto-bot Sunflower Farmers NFT Game automated bot.IT IS NOT a

Arthur Alves 17 Nov 9, 2022