GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    Francesco Maida (cesco@livellosegreto.it)'s status on Monday, 11-Mar-2024 21:43:48 JST Francesco Maida Francesco Maida
    in reply to
    • KSGamingLife🕹️ 🐈 🍸

    @KSGamingLife Mai usato la libreria discord.py ma da questa risposta suppongo che sia fattibile: https://stackoverflow.com/questions/63848571/how-to-send-an-attachment-using-python-discord-bot

    In conversation about a year ago from livellosegreto.it permalink

    Attachments


    1. Domain not in remote thumbnail source whitelist: cdn.sstatic.net
      How to send an attachment using Python Discord bot
      I want my bot to send a file (not necessarily an image, could be a text file) to the channel when called. Here's my code snippet: @bot.command(pass_context=True) async def send(ctx): area=ctx.m...
    • Embed this notice
      KSGamingLife🕹️ 🐈 🍸 (ksgaminglife@livellosegreto.it)'s status on Monday, 11-Mar-2024 21:43:52 JST KSGamingLife🕹️ 🐈 🍸 KSGamingLife🕹️ 🐈 🍸
      in reply to

      @cesco interessante. Saprebbe anche allegare un file .mp4?

      In conversation about a year ago permalink
    • Embed this notice
      Francesco Maida (cesco@livellosegreto.it)'s status on Monday, 11-Mar-2024 21:43:57 JST Francesco Maida Francesco Maida
      in reply to
      • KSGamingLife🕹️ 🐈 🍸

      @KSGamingLife invece di inviare una stringa di testo, fai aprire un file di testo ed invii il suo contenuto.

      with open("messaggio.txt", "r") as f: messaggio = f.read()

      modifichi il testo al mattino, e lasci che nel pomeriggio alle 17 lo script lo invii su discord.

      Questa IMHO è la cosa più facile che con un minimo di sbattimento chiunque può mettersi in piedi da solo.

      In conversation about a year ago permalink
    • Embed this notice
      KSGamingLife🕹️ 🐈 🍸 (ksgaminglife@livellosegreto.it)'s status on Monday, 11-Mar-2024 21:44:02 JST KSGamingLife🕹️ 🐈 🍸 KSGamingLife🕹️ 🐈 🍸
      in reply to

      @cesco Uhm. Al netto della complessità, questo è comodo per mandare un messaggio a intervalli schedulati. Io vorrei fare i reminder delle live tutti i giorni alle 17, ma vorrei scrivere il messaggio quando mi pare, e metterci un allegato.

      In conversation about a year ago permalink
    • Embed this notice
      Francesco Maida (cesco@livellosegreto.it)'s status on Monday, 11-Mar-2024 21:44:06 JST Francesco Maida Francesco Maida
      in reply to
      • KSGamingLife🕹️ 🐈 🍸

      @KSGamingLife Se vi va di provare Python, c'è la libreria discord.py che fa giusto al caso vostro.

      Qui trovate un esempio di script in python semplice per postare su Discord ad intervalli di 24 ore. Non è perfetto ma si avvicina alla vostra necessità:

      https://stackoverflow.com/questions/57631314/making-a-bot-that-sends-messages-at-a-scheduled-date-with-discord-py

      In conversation about a year ago permalink

      Attachments


    • Embed this notice
      KSGamingLife🕹️ 🐈 🍸 (ksgaminglife@livellosegreto.it)'s status on Monday, 11-Mar-2024 21:44:09 JST KSGamingLife🕹️ 🐈 🍸 KSGamingLife🕹️ 🐈 🍸

      #AiutoSegreto ci occorre un bot che invii, con una schedulazione, un messaggio in un canale Discord con un allegato.
      Chi conosce qualcosa di fatto bene?

      EDIT: DOVREMMO aver risolto con Dynobot, ha alcune limitazioni ma forse sono aggirabili. Intanto grazie a tutt*!

      In conversation about a year ago permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.