M
M
MorelBezos2021-04-23 10:01:40
Yii
MorelBezos, 2021-04-23 10:01:40

How to auto send messages to discord channel?

How can I implement automatic sending of messages after a certain period of time to a certain channel of ANOTHER dicord server, so that these messages are published on my behalf.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
LAV45, 2018-08-23
@LAV45

Add PDO::ATTR_PERSISTENT in the database connection settings, then the connection to the database will not be terminated at the end, and all users / scripts will use it.

return [
    'components' => [
        'db' => [
            'class' => 'yii\db\Connection',
            'attributes' => [
                PDO::ATTR_PERSISTENT => true
            ]
        ],
    ],
];

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question