aboutsummaryrefslogtreecommitdiff
path: root/juick-api/src/main/java/com/juick/api/configuration/MessengerConfiguration.java
blob: c3c8f3e63b0a794e5f46098bc3e5921c7b5f3a87 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.juick.api.configuration;

import com.juick.api.MessengerBot;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by vital on 28.03.2017.
 */
@Configuration
public class MessengerConfiguration {
    @Value("${fb_verify_token}")
    private String messengerBotVerifyToken;

    @Bean
    public MessengerBot fbBot() {
        MessengerBot bot = new MessengerBot();
        bot.setVerifyToken(messengerBotVerifyToken);
        return bot;
    }
}